[luau] Programming List
Ray Strode
halfline at hawaii.rr.com
Fri Jun 7 14:03:00 PDT 2002
> Yes, I was talking not too long ago about need to learn to program and that
> is why I don't mind seeing programming question on the list.
So by that same logic wouldn't you want to subscribe to a list more
geared toward programming?
> I know about several options for windows, but this script has to run on any
> plain old win2k workstation without the NON-TECH users having to do
> anything but "double-click" the icon on the desktop and send me the output
> file.
yea as long as you can get the cygwin runtime dll into their system
folder it should be that easy.
> the script pings several IPs on our way to the internet, tells
> the user what is up and that is down
isn't that what traceroute/tracepath is for? windows comes with a
version called tracert.exe
> It would be nice if I could get it to mail me the file, but I am not
> that advanced yet.
I haven't tested this, but it may work:
echo "EHLO yourmailserver.com" > email.dat
echo "MAIL FROM: Some User <someuser at yourmailserver.com>" >> email.dat
echo "RCPT TO: Dusty <dusty at sandust.org>" >> email.dat
echo "Subject: Network Status"
echo .
tracert www.yahoo.com >> email.dat
echo "." >> email.dat
telnet yourmailserver.com 25 < email.dat
> don't know how to print blank lines to the screen in a batch file
I believe it's just echo followed by a period on a line of its own.
> can't get EDLIN to delete single characters or spaces on a line.
.rS1^ZS2
will replace all occurences of S1 with S2 (^Z is control-z). if you omit
the ^ZS2 then it will just delete all occurences of S1.
> I repeat the exact same steps over and over and wanted to figure out how to
> remove the redundancy.
I don't understand this statement.
> I have attached the script if anyone has any suggestions
[...]
> set WWW.YAHOO.COM=www.yaho.com
typo ^
> echo --------------PINGING WWW.YHAOO.COM----------------- >> network_test_report.txt
typo ^^
More information about the LUAU
mailing list