Search Results

Search: Posts Made By: twinion
1,786
Posted By twinion
Sausage1=$(date '+%Y%m%d') ssh...
Sausage1=$(date '+%Y%m%d')
ssh transfer@theserver "while [ ! -f /the/path/tofile/filename_out.bin_\"$Sausage1\"_?????? ]; do sleep 120; done"

By the gods! This did it......i was pulling out what...
1,786
Posted By twinion
Passing a variable via ssh, can't quite get it right
Hi Guys n Girls,

Below im using a while command to wait for a file on another server then carrying on with the script.....
I dont believe the $Sausage1 variable is being passed to the other...
1,983
Posted By twinion
Yes you are right a function would be a better...
Yes you are right a function would be a better approach!
1,983
Posted By twinion
Many thanks, some brilliant suggestion guys. I'm...
Many thanks, some brilliant suggestion guys. I'm going to get some sleep then make some improvements and test it again tonight. I'm self taught on scripting but I believe I maybe addicted.
1,983
Posted By twinion
sorry that is a typo when written into the forum ...
sorry that is a typo when written into the forum

mytest15=`cat /pathtofile/filename | grep -c filename.$DATE.TXT | grep TRL | wc -l`

basically i know the file has completed writing when it has...
1,983
Posted By twinion
Script in bash that works only some of the time
I ran this script yesterday (in the background)
/usr/bin/nohup myfilelocation/myscriptname.sh &

the script worked perfectly.

i ran it today (also in the background) and just sat there. So i...
2,399
Posted By twinion
Thanks, great replies. Alas the file is sent from...
Thanks, great replies. Alas the file is sent from a 3rd party and all I do with it is wait till its complete and send it onto someone else. This is a manual task so I thought I would automate it. I...
2,399
Posted By twinion
Thanks for the replies, Jim the system I am using...
Thanks for the replies, Jim the system I am using is a Solaris. With very strict restrictions on plugins. So I think fuser maybe the way to go? Could you suggest away to use that?
Also achenle...
2,399
Posted By twinion
Check to see if a file is generating
Hi guys,

I am pulling my hair out here. I have a file that comes in, once it finishes i want to move it to a new location. This sounds all very easy but my solution is failing and moves the file...
1,543
Posted By twinion
Thanks for the comments. Will look for the "at"...
Thanks for the comments. Will look for the "at" command for sure, not seen that one before.
1,543
Posted By twinion
Hi, thanks for the reply. The system I use is a...
Hi, thanks for the reply. The system I use is a sun Solaris. The break part was just away of sitting there and waiting for a job to finish, this starts the same time the other job does (8pm) once the...
1,543
Posted By twinion
Run a job between times else run later
Hi guys,

I have written a script that waits for a trigger file.
Then checks the time of the trigger.
if the trigger finished between 8pm and midnight then runs a job.
else it waits till 1am...
1,770
Posted By twinion
Yeah i have a version like this as well, thanks...
Yeah i have a version like this as well, thanks for taking the time to reply....

my question although very long winded was....is this the best approach...and am i complicating things....was...
1,770
Posted By twinion
I think i may need to do something like this, i...
I think i may need to do something like this, i was hoping not to put specific file names as i have 4 systems and they all have diff file names plus i would need to modify for new files. If i took...
1,770
Posted By twinion
alas not on this one, would make life soooo much...
alas not on this one, would make life soooo much easier, that is why i am forced to take a weird approach

i have -mtime -ctime -atime, those are no use at all as i think they are via days
1,770
Posted By twinion
Solaris: New files in a directory for longer than 1h
Hi guys,

I have an interesting problem. I have looked on the forums for simular solutions but i need a differnt approach.

On an evening i have files that are created and sit in a directory,...
1,507
Posted By twinion
I see what your doing here and that looks like a...
I see what your doing here and that looks like a very easy approach thanks! Thats what i love about unix, i was trying something far far more long winded, so i love your spin on it!
1,507
Posted By twinion
Working out days of the week and processing file in 3 working days
Hi guys i need advice on the approach to this one......

I have a file say called
Thisfile.20130524.txt
i need to work out from the date 20130524 what day of the week that was and then...
2,981
Posted By twinion
Great i am seeing your approach, at first glance...
Great i am seeing your approach, at first glance this could work, but i do also have files from the last seven days in the directory so i need to make sure i do it so i dont detect a file from 2 days...
2,981
Posted By twinion
Thanks for the reply. My network connection just...
Thanks for the reply. My network connection just went boom so I can't really look until I log back in. I just need it to Monitor a directory for files say randomfile.030413 and then after midnight...
2,981
Posted By twinion
Monitoring for specific date stamped files before and after midnight
Hi Guys,

I am having a brain freeze....

I want to monitor a directory for a time stamped file on a sol 10 system in bash or ksh, the files will come in looking like this..
...
Showing results 1 to 21 of 21

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