Search Results

Search: Posts Made By: sparks
2,119
Posted By Peasant
Looks like a job for inotifywatch on Linux...
Looks like a job for inotifywatch on Linux systems.

Hope that helps
Regards
Peasant.
24,743
Posted By RudiC
Are you possibly using sftp as this would allow...
Are you possibly using sftp as this would allow for "glob(3) characters and may match multiple files"? Then you could sshto identify the file of interest and sftp (or scp) exactly this one, then.
24,743
Posted By Corona688
Something like ssh user@host ls /path/to/folder...
Something like
ssh user@host ls /path/to/folder '|' head -n 1 > localfiles

sftp user@host <<EOF
get `cat localfiles`
EOF
3,998
Posted By Corona688
This is wrong: filename= echo $line | awk...
This is wrong:

filename= echo $line | awk '{print $9}'

You already do this sort of thing correctly when you set DIRNAME, but you forgot to do so here. Also the extra space after the equals...
7,335
Posted By bakunin
sparks partly got it right: sed -n '1p;$p' ...
sparks partly got it right:

sed -n '1p;$p'

will print the first and last line of whatever comes its way: in a pipeline it prints the first and the last line of the input, given a filename it...
4,249
Posted By hanu_oracle
Before executing your main script, Just add...
Before executing your main script,
Just add the one more if condition for TimeStamp checking.

If [ $CurrentTimeStamp == "00:10 MST" ]
then
exit
echo "Execution of...
4,249
Posted By methyl
Easier to have two crontab entries. 10,40...
Easier to have two crontab entries.

10,40 1-23 * * * /myscript
40 0 * * * /myscript
278,744
Posted By Neo
Simple rules of the UNIX.COM forums:
RULES OF THE UNIX AND LINUX FORUMS

For the latest version of the community rules (the official community rules page), please visit here. (https://www.unix.com/misc.php?do=cfrules)


No flames,...
Showing results 1 to 8 of 8

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