9 More Discussions You Might Find Interesting
help with bash script!
im am working on this script to make sure my server will stay online, so i made this script..
for myhost in "$@"
ping -c "$COUNT" "$myhost" &&return 1
if pingtest $HOSTS
#100% failed... (4 Replies)
Discussion started by: mort3924
How would someone save a file such as /etc/vpnc/test.conf locally into a temp file, so it can be queried? So for example if I used rsync to copy this file locally, how would I add that to a temp_file variable and discard it using unlink?
... (15 Replies)
Discussion started by: metallica1973
3. Shell Programming and Scripting
I am using perl to ping a list of nodes - with script below :
$p = Net::Ping->new("icmp");
print "$host is alive.\n";
print "$host is unreacheable.\n";
$p->close();... (4 Replies)
Discussion started by: tavanagh
4. Shell Programming and Scripting
I develop simple animation ping script on Solaris Platform. It is like Cisco ping.
Examples and source code are below.
bash-3.00$ gokcell 184.108.40.206 30
Sending 30 Ping Packets to 220.127.116.11
% 93.33 success... % 6.66 packet loss...... (1 Reply)
Discussion started by: gokcell
5. Shell Programming and Scripting
I am looking to use rsync in a very specific way, and even though I have trawled the rsync man pages I have not succeeded in seeing a way of doing the following:
The temporary files created by rsync should not be created in the destination directory. (I have used --temp-dir option to... (0 Replies)
Discussion started by: LostInTheWoods
I have a server with solaris 2.6 installed.
Is it possible modify system date only temporary that, automatically, after a reboot, I can have again the date after the temporary mofication?
I don't want to use "date" command after reboot for tidy up date. I only want to find a... (2 Replies)
Discussion started by: bonovox
7. Shell Programming and Scripting
I am creating a temporary file in my ksh by using something file
Later on in my script I write to the file $filetemp by 'cat'ing to it.
Then in the script I am doing a 'less' on the file to view it.
At the end of the script I issue a rm $filetemp 2>... (4 Replies)
Discussion started by: gio001
8. Shell Programming and Scripting
In the script I am creating a temporary file with process id as temp.txt.$$
I want to remove this tomporary file first from the current directory when i'll run the same script next time.
Note: Every time when the script executes then it has unique process id and it'll create a... (5 Replies)
Discussion started by: varungupta
I found a syntax for adding temporary alias to an interface:
ifconfig en0 192.168.1.3 netmask 255.255.255.0 alias
But I can't find a command to remove it.
Could it be that I only need to add - before alias?
Tnx! (1 Reply)
Discussion started by: veccinho