NewTimestamp=$OldTimestamp;
while [$NewTimestamp -eq $OldTimestamp ]; do
sleep1;
NewTimestamp=$(date -r $CsvDir/$CsvFile);
echo old: $OldTimestamp; echo new: $NewTimestamp;
done;
But it doesn't work. I get error:
-bash: [Mon: command not found[COLOR="#738fbf"]
1. you must have single space on both side of opening and closing square bracket.
2. sleep1 should be sleep 1
3. In comparison, you didn't use quotes. ( you will have spaces in both the variables)
4. you are comparing string with integer operator.
:cool:
I need to execute a shell script to do the following:
cat a file
run two back ground processes using the first two values from the file
wait till those background processes finish
run two more background processes using the next two values from the file
wait till those background... (1 Reply)
Did not use 'wait' yet.
How I understand by now the wait works only for child processes, started background.
Is there any other way to watch completion of any, not related process (at least, a process, owned by the same user?)
I need to start a background process, witch will be waiting... (2 Replies)
Hi All!
Here is the problem,
I'm trying to develop a script that can help me with the raid creation, but, till now, I have been dealing for more than a week and I still didn't achieve any satisfactory results. :confused:
Here is the code to execute:
# mdadm --manage /dev/md0 --add... (4 Replies)
Hi
Im looking to create a Aix script to monitor a file for once it's been updated and then send an email. I dont have great scripting knowledge and have only come up with the following so far
while true
do
find /home/test/AMQ* -mmin 1 > /home/test/scripts/output/MQERRORS
exec... (2 Replies)
Hi everyone,
I need some help to create a script. This script have to create a file once all the process inside are finish.
Here how I want to do : #!/bin/ksh
/home/oracle/save1.ksh &
proc_id1=$!
/home/oracle/save2.ksh &
proc_id2=$!
/home/oracle/save3.ksh &
proc_id3=$!
... (4 Replies)
Hi,
I have a script which updates a repository which is run manually. When this happens either no or new files will be added to a specific folder. If there are new files that have been added, an email needs to be sent. How can i check a folder for any new files after the update repos script has... (0 Replies)
Hi,
I am facing a strange issue,
when i call a script from my while loop in background it doesnt go in background, despite the wait i put below the whil loop it goes forward even before the process put in background is completed.
cat abc.txt | while read -u4 line
do
#if line contains #... (2 Replies)
Hi,
written a script which uses wait as follows
Main.sh
#!/usr/bin/ksh
nohup scrpit1 1 &
pid_1=$!
nohup scrpit1 2 &
pid_2=$!
wait $pid_1
wait $pid_2
nohup scrpit1 3 &
pid_1=$!
nohup scrpit1 4 & (1 Reply)
Discussion started by: krux_rap
1 Replies
LEARN ABOUT DEBIAN
update-squidguard
UPDATE-SQUIDGUARD(1) SquidGuard documentation UPDATE-SQUIDGUARD(1)NAME
update-squidguard - Update script for SquidGuard.
SYNOPSIS
update-squidguard
DESCRIPTION
This script performs a database rebuild for any blacklists listed in the default Squidguard config file `/etc/squid/squidGuard.conf'.
After rebuilding the databases it will reload Squid / Squid3 so that it will make use of the updated lists.
OPTIONS -v | --verbose
Show some more information and switch on progress bar when updating database.
-c | --checkdb
Check Berkeley DB version and rebuild full database only if Berkeley DB version have changed. This option should be used after upgrade
of squidguard to reduce wasteful wait time.
COPYRIGHT and LICENSE
Copyright (C) 2003 Ivan E. Moore II, 2010-2012 Joachim Wiedorn
This script is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'.
AUTHOR
update-squidguard was written by Ivan E. Moore II and updated by Joachim Wiedorn.
This manual page was written by Joachim Wiedorn <ad_debian at joonet.de> for the Debian project (and may be used by others).
SEE ALSO squidGuard(1), squid(1), sgclean(1), hostbyname(1)Version 1.5 2012-04-15 UPDATE-SQUIDGUARD(1)