On Linux I could use the `watch` command to loop a command X times. Is there a similar command on AIX? If not, is there a way to write a loop on the command line to do this?
Linux: watch -d -n 60 'db2 list applications show detail | grep Connect | wc -l'
AIX: ??? (2 Replies)
Hi Experts,,
Can you tell me "Is there any command in solaris that gives the output repeatedly for every x seconds" when used with other commands like ls,du,df,etc..Like prstat updates its output for every 5 seconds..
If i want to view how much of disk usage is going on a filesystem for every... (2 Replies)
I'm new to Linux and have very limited experience with shell scripts in general. I am taking a class and I have to research online and come up with a shell script that monitors disk space. I also have to be able to explain it line by line. I've researched various sites and came across this shell... (3 Replies)
Hi everyone--
I'm new to these forums and shell scripting, and I'm trying to write a script that checks if a particular ip is pingable
My idea was to check if the output of the command ping <some ip> -c 1 -w 1 had the string: "1 packet transmitted, 1 received"How would I go about doing this?... (2 Replies)
Hi All,
Is there any way to monitor a command inside shell script ? I have a script inside which I have a tar command which zips around 200GB data.
tar zcvf $Bckp_Dir/$Box-BaseBackup-$Day.tar.gz * --exclude 'dbserver_logs/*' --exclude postmaster.pid --exclude 'pg_xlog/*'
I want to... (3 Replies)
Hi
I am trying to store the output of a command into an array in perl script.
I am able to store but the problem is i am unable to print the array line with one line space. i mean i inserted the \n in loop ...but not getting the result.
I have written like this
#!/usr/bin/perl
@a =... (2 Replies)
so i have a very long script which i have to run. when i run this script, i want to monitor the the openssl commands it runs.
the way ive attempted to do this is:
watch -t -n 1 "(date '+TIME:%H:%M:%S' ; ps aux | egrep openssl | egrep -v grep)" 2>&1 | tee -a logfile
the above command is... (2 Replies)
Discussion started by: SkySmart
2 Replies
9. Post Here to Contact Site Administrators and Moderators
Kindly advice with shell script to monitor open file in linux, if the open file count is greater then 5000 then send me an email..
command : lsof | wc -l (0 Replies)
hi all,
i want to monitor the progress of a find and exec command, this is the code i use -
find . -type f -exec md5sum {} \; >> /md5sums/file.txt
this command works and produces a text file with all the md5sums but while running it doesnt show the progress
is there anyway i can do this... (4 Replies)