Search Results

Search: Posts Made By: azzeddine2005
2,607
Posted By zaxxon
( cat X1.txt; cat X2.txt) >> AllXfile.txt
( cat X1.txt; cat X2.txt) >> AllXfile.txt
1,502
Posted By Scrutinizer
As long as the scripts take less then 3 minutes...
As long as the scripts take less then 3 minutes this should fire every 3 minutes..while :
do
sleep 180 & # Run sleep in the background
/path/to/dir/test1
/path/to/dir/test2
wait...
1,502
Posted By Yoda
Instead of joining 2 scripts, you can write...
Instead of joining 2 scripts, you can write another caller script which will invoke test1 & test2 every 3 minutes:-
#!/bin/ksh
while (true) # Infinite while loop
do
/etc/test1 #...
2,381
Posted By Chubler_XL
OK this slight change so fix that: ...
OK this slight change so fix that:

#!/bin/ksh
YT=`date +%Y`
MT=`date +%m`
DT=`date +%d`
MT=${MT#0}
DT=${DT#0}

while read line
do
Y=${line##*-}
M=${line%-$Y}
M=${M##*-}
...
2,381
Posted By Chubler_XL
Yes script gets everything after the last "-" as...
Yes script gets everything after the last "-" as Year.


Try this:

#!/bin/ksh
YT=`date +%Y`
MT=`date +%m`
DT=`date +%d`
MT=${MT#0}
DT=${DT#0}

while read line
do
Y=${line##*-}...
2,381
Posted By Chubler_XL
Try this: YT=`date +%Y` MT=`date +%m` ...
Try this:

YT=`date +%Y`
MT=`date +%m`
DT=`date +%d`

while read line
do
Y=${line##*-}
M=${line%-$Y}
M=${M##*-}
D=${line%-$M-$Y}
D=${D##* }
M=${M#0}
...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 11:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy