rockmountain has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/local/bin/tcsh # User on the host machine set USER="shke42" #bastion host (Julius) set host="seres" # target machine to be pinged set target="10.207.41.205" #file name to store the ping details set OUT="status.txt" #ping file path on the host machine set pingpath="/usr/sbin" # remote loging to host and ping the target machine ssh $USER@$host ${pingpath}/ping $target >$OUT sleep 2 exit
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Shell to Perl conversion
by ikegami (Patriarch) on Aug 29, 2008 at 07:50 UTC | |
|
Re: Shell to Perl conversion
by pjotrik (Friar) on Aug 29, 2008 at 07:58 UTC | |
|
Re: Shell to Perl conversion
by moritz (Cardinal) on Aug 29, 2008 at 07:50 UTC | |
by rockmountain (Sexton) on Aug 29, 2008 at 08:50 UTC | |
by Corion (Patriarch) on Aug 29, 2008 at 09:01 UTC | |
by rockmountain (Sexton) on Aug 29, 2008 at 10:12 UTC | |
by Corion (Patriarch) on Aug 29, 2008 at 10:37 UTC | |
| |
by moritz (Cardinal) on Aug 29, 2008 at 08:55 UTC | |
by rockmountain (Sexton) on Aug 29, 2008 at 08:39 UTC |