Search Results

Search: Posts Made By: 1buckeye_fan
4,485
Posted By 1buckeye_fan
this is what I have so far but it bombs out in my...
this is what I have so far but it bombs out in my if statement...

readOne () {
tput smso
echo "Press any key to return \c"
tput rmso
oldstty=`stty -g`
stty -icanon -echo min 1 time 0
dd...
4,485
Posted By 1buckeye_fan
if I wanted to terminate my script when the...
if I wanted to terminate my script when the following message appears

"No such file or directory"

How would I do that?
4,485
Posted By 1buckeye_fan
never mind.. I think I found what I need....
never mind.. I think I found what I need....
4,485
Posted By 1buckeye_fan
thanks... I'm still missing something and I can't...
thanks... I'm still missing something and I can't see what it is...

I'm trying to run the script in debug mode -x but it looks like I need to insert some pauses so I can read what the output...
4,485
Posted By 1buckeye_fan
here is what I'm working with now... cd...
here is what I'm working with now...


cd /cms/ech_data/archive
start=$( date +%Y%j )
stop=$( date +%Y000 )
while [[ $start -gt $stop ]]
do
cp ${start}.Z ../recovery
cd ../recovery...
4,485
Posted By 1buckeye_fan
thanks for the reply but I have a question... ...
thanks for the reply but I have a question...

You have
start=$( date +%Y%03j )
stop=$( date +%Y000 )


shouldn't that line actually be
start=$( date +%Y365 )
stop=$( date +%Y000 )
4,485
Posted By 1buckeye_fan
need help using find and date (julian)
I'm trying to put together a little script that will move some files to a directory, uncompress the file then delete the file when processing is complete.

The files are all named using julian...
Showing results 1 to 7 of 7

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