#145354 - 2005-08-23 08:00 AM
Re: Reading/Writing from /to Command prompt
|
Allen
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
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
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
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
|
|
|
|
#145361 - 2005-08-24 08:03 AM
Re: Reading/Writing from /to Command prompt
|
AstaaLavista
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
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
|
|
|
|
#145364 - 2005-08-26 10:09 AM
Re: Reading/Writing from /to Command prompt
|
AstaaLavista
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
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 373 anonymous users online.
|
|
|