Search Results

Search: Posts Made By: lawsongeek
1,215
Posted By lawsongeek
when i sh, it just "Exiting Tue" all the time...
when i sh, it just "Exiting Tue" all the time even though Tue = Tue and Tue.txt exists. it should run when Tue = Tue and Tue.txt exists.
1,215
Posted By lawsongeek
Shell script
if i have it like this, it runs every other monday fine.

date | awk '{print $1}' > $TMPDIR/today.txt
today=`tail $TMPDIR/today.txt`
if [ Mon = $today ] && [ -e $TMPDIR/$today.txt ]
then
echo...
Showing results 1 to 2 of 2

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