06-30-2009
Monitoring awk script progress
Is there a way to have awk output its regular output to a file and some other stuff to a log file to monitor progress?
ie: print first field of a file and for every 100000 lines dealt with, print time in file.log
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello once again:
One thing that seems to be a nice feature is a progress gauge... so I can see how long an operation will take for a task to complete if it is requiring a lot of processing or the file is enormous. I have seen references to gauge operations, but I don't know anything about it or... (1 Reply)
Discussion started by: ccox85
1 Replies
2. Shell Programming and Scripting
Can anybody suggest you a good script to show progress of a process.
I figured it out some thing like this. But cursor goes to the end of the line and after every loop it goes to the next line.
while true ; do
for i in \| \/ \- \\ \| \/ \- \\
do
echo "\b\b$i \c"
sleep 1
done
done (8 Replies)
Discussion started by: ./hari.sh
8 Replies
3. Shell Programming and Scripting
I have written a shell script to Automatically FTP a file. The script runs fine when doing it manually but when I schedule it using a crontab it gives me an error.
.
.
.
echo "-----------------Starting File FTP---------------------" >> $PROS_LOAD_LOG
echo "open X.XX.XX.XXX" >>... (13 Replies)
Discussion started by: tanhajoy
13 Replies
4. Shell Programming and Scripting
Hey all. I added this to my script, hoping for a progress bar or percentage complete
lsof -o0 -o -p $$ |
awk '
BEGIN { CONVFMT = "%.2f" }
$4 ~ /^+r$/ && $7 ~ /^0t/ {
offset = substr($7, 3)
fname = $9
"stat... (6 Replies)
Discussion started by: midniteslice
6 Replies
5. Shell Programming and Scripting
dear all ,
i made script to transfer data through the FTP but i need to add something if you can help me i want in the output message like progress bar
|||||||||||||||||||||||||| 30%
to know when it will finish (3 Replies)
Discussion started by: maxim42
3 Replies
6. Emergency UNIX and Linux Support
Hi friends,
I am quite used to using glance in HPUX servers for analysis performance issues with a particular process as requested by app. folks.
The options which are very helpful to me are the "F" , "W" , "L" stats. How can i get the similar details on Linux servers without using glance?... (2 Replies)
Discussion started by: kunwar
2 Replies
7. Programming
hi all,
i want a program or to make a bash script to find out the total ETA/percent (would be nice aswell a progress bar) of a copy recursive command
so lets say i do -
cp -r /source_folder/ /destinatation_folder/
and when i run it i get no information on the screen of how the copy is... (20 Replies)
Discussion started by: robertkwild
20 Replies
8. Programming
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)
Discussion started by: robertkwild
4 Replies
9. Shell Programming and Scripting
Hi,
I have shell script that I am running under Ubuntu as root.
Is it possible to hide the command window and show the user some sort of progress /random progress bar / or other form of GUI interaction?
On MAC, I have been using Platypus but on Ubuntu I am not sure what to do. (4 Replies)
Discussion started by: naveedanwar4u
4 Replies
LEARN ABOUT DEBIAN
torrus_monitor
TORRUS_MONITOR(8) torrus TORRUS_MONITOR(8)
NAME
monitor - Torrus Monitor.
SYNOPSIS
torrus monitor --tree=TREENAME [options...]
DESCRIPTION
This command starts the Monitor process for the tree TREENAME. By default it forks into a daemon, sets the log output file to
/var/log/torrus/monitor.TREENAME.log, performs one monitoring cycle, and sleeps until the next cycle is scheduled. In daemon mode the log
file can be reopened by sending it a SIGHUP signal.
OPTIONS
--nodaemon
Prevents the process from becoming a daemon and sets the log to STDERR.
--runonce
Instructs the script to run once and exit. Implies --nodaemon.
--delay=N
Makes the daemon sleep for N minutes before starting the first cycle. This would happen on the daemon startup and also after each
configuration recompilation. For example, when monitor and collector start simultaneously, the collector needs some time to retrieve
the data being monitored.
--debug
Sets the log level to debug.
--verbose
Sets the debug level to info.
--help
Displays a help message.
FILES
/etc/torrus/conf/torrus-siteconfig.pl
Torrus site configuration script.
/var/log/torrus/monitor.TREENAME.log
Monitor's log for the tree TREENAME.
SEE ALSO
torrus(8)
NOTES
See more documentation at Torrus home page: http://torrus.org
AUTHOR
Stanislav Sinyagin <ssinyagin@yahoo.com>
torrus 2.03 2013-07-26 TORRUS_MONITOR(8)