Page 2 of 2 <12
Topic Options
#145354 - 2005-08-23 08:00 AM Re: Reading/Writing from /to Command prompt
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
Quote:

I tried the following on the command prompt:
telnet -f abc.txt port.





Not sure if you made a typo there... but should be
Code:
 telnet -f abc.txt ipaddress port 


Top
#145355 - 2005-08-23 08:25 AM Re: Reading/Writing from /to Command prompt
AstaaLavista Offline
Starting to like KiXtart

Registered: 2005-08-11
Posts: 111
Loc: Gujarat, India.
Quote:



Code:

break on

$wksta = @WKSTA

shell '%comspec% /c ping -n 2 $wksta | find /i "TTL=" >NUL 2>NUL'

if @ERROR = 0
?"$wksta is accessible!"
else
?"$wksta is not accessible!"
endif

exit 0







I tried this too. It works fine, BUT unfortunately, ping does not work for checking foreign I.P. what i mean is, I am not able to ping to any I.P. outside my network due to the FIREWALL. so the only option which is have is telnet. I replaced the ping statement with TELNET but it didnt work.

Actually, i dont want to use any thing other than Kixtart, not even the HABobjects.DLL. Is it possible to do? I am trying & will let you all know.

Top
#145356 - 2005-08-23 08:30 AM Re: Reading/Writing from /to Command prompt
AstaaLavista Offline
Starting to like KiXtart

Registered: 2005-08-11
Posts: 111
Loc: Gujarat, India.
Quote:

Quote:

I tried the following on the command prompt:
telnet -f abc.txt port.





Not sure if you made a typo there... but should be
Code:
 telnet -f abc.txt ipaddress port 







Yeah, Sorry it was a typo. But it doesn't work. The file is modified, but nothing is written into it.

Top
#145357 - 2005-08-23 09:08 AM Re: Reading/Writing from /to Command prompt
AstaaLavista Offline
Starting to like KiXtart

Registered: 2005-08-11
Posts: 111
Loc: Gujarat, India.
I tried NETVIEW.UDF but unfortunately it also wont be of much help. Basically, i want to maintain a list of all accessible ports which are outside my network.
so telnet is the only option. which somehow is NOT working well with Kix.

Top
#145358 - 2005-08-23 09:19 AM Re: Reading/Writing from /to Command prompt
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
sure it is.
how else I would have written a massmailer with it.

anyway, can you do the telnet stuff manually without kix?
that is, see what is going wrong.
_________________________
!

download KiXnet

Top
#145359 - 2005-08-23 09:28 AM Re: Reading/Writing from /to Command prompt
AstaaLavista Offline
Starting to like KiXtart

Registered: 2005-08-11
Posts: 111
Loc: Gujarat, India.
I tried telnet -f abc.txt 192.168.33.22. Log file was created. but nothing was written into it.
Do i have to enable LOGGING from anywhere?

Top
#145360 - 2005-08-23 09:30 AM Re: Reading/Writing from /to Command prompt
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
are you using WinME or win9x?
_________________________
!

download KiXnet

Top
#145361 - 2005-08-24 08:03 AM Re: Reading/Writing from /to Command prompt
AstaaLavista Offline
Starting to like KiXtart

Registered: 2005-08-11
Posts: 111
Loc: Gujarat, India.
Neither WinME nor Win9X, but Win 2K & Win XP.
Top
#145362 - 2005-08-25 07:30 AM Re: Reading/Writing from /to Command prompt
AstaaLavista Offline
Starting to like KiXtart

Registered: 2005-08-11
Posts: 111
Loc: Gujarat, India.
Hi All,

I have got some breakthrough. I was able to set the logging option.
I didnt know that it is done by typing ONLY telnet on the command prompt.
The log file was successfully created.

Thus, I will check whether the log file is empty or not, which in turn will imply that port is opened or not.
BUT...,this solves the problem for only port 23(telnet port); apart from PORT no. 23, for all other ports, nothing is written into the log file.

So, I will have to find a way of differentiating the OTHER ports. I am looking into it.

Top
#145363 - 2005-08-25 04:42 PM Re: Reading/Writing from /to Command prompt
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
So why can't you simply use a portchek or portqry utility as Rad and I suggested?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#145364 - 2005-08-26 10:09 AM Re: Reading/Writing from /to Command prompt
AstaaLavista Offline
Starting to like KiXtart

Registered: 2005-08-11
Posts: 111
Loc: Gujarat, India.
Quote:

So why can't you simply use a portchek or portqry utility as Rad and I suggested?




Please excuse me, but there are some reasons why I cant use any utility:

Since i work for a company, using any utility will create license issues.
Also, if the utility does everything, then what is my contribution.

Top
#145365 - 2005-08-26 05:26 PM Re: Reading/Writing from /to Command prompt
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well... that's a lame arguement.
Rad and I work for companies and have no issue with license.
Telnet is a utility so what is your contribution there? I'm pretty sure Ruud will not be hacking KiX anytime soon to add screen scraping of MS telnet.

I do script telnet but not the not-so-well-behaved MS telnet and not entirely with KiX. I use the HyperTerm telnet and the 'AutoItX3.Control' COM object.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 833 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.059 seconds in which 0.025 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org