|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
SFTP check if file exists
I lookifn for a way to SFTP a file based on the presence of a flag file .
The logic is some thing like this in shelling terms IF [[ ! -s file.DDMM.done ]]; then download file.DDMM.dat FI The above is just the way of interpreting the logic. Just want to add that i do not have SSh access to the remote server |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
i figured out a way to use batch file to check if the done file is there. i find is the file is there using the verbose mode of sftp. downside of using batch is that there will not be any return codes.
Well fo rnow it works . is there a better way ? would love to do it that way .. |
| Sponsored Links | ||
|
![]() |
| Tags |
| file exits, sftp script |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| bash: check if file exists(without using if) | gangsta | Shell Programming and Scripting | 3 | 10-07-2011 11:32 AM |
| Check to see if a file exists? | buechler66 | Shell Programming and Scripting | 5 | 06-28-2011 10:38 PM |
| Check if file exists + ulp :S | ruben.rodrigues | Programming | 2 | 02-22-2010 02:28 AM |
| FTP check if file exists and log it | gseyforth | Shell Programming and Scripting | 1 | 08-12-2009 03:40 AM |
| check if remote file exists | hcclnoodles | Shell Programming and Scripting | 2 | 08-27-2008 05:53 PM |
|
|