![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | 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. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| simple check to see if a folder exists | psyman | Shell Programming and Scripting | 4 | 09-27-2007 01:15 PM |
| How can I check if directory exists in a makefile | zivsegal | UNIX for Dummies Questions & Answers | 2 | 09-10-2007 03:12 AM |
| how to check if masked directory exists? | philplasma | Shell Programming and Scripting | 4 | 05-30-2007 08:46 PM |
| check if directory exists | jerardfjay | Shell Programming and Scripting | 2 | 06-13-2005 02:26 PM |
| check if exists a .ZIP file and unzip it using ftp | DebianJ | Shell Programming and Scripting | 1 | 05-05-2005 04:46 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi Good people
![]() How do I check if a directory exists, if it does then carry on rest of the script, otherwise exit. ------------- cd $mainfolder/system1 #unzips files arrived in last 24 hrs into temp directory find * -mmin -1440 -exec unzip {} \; I'd like to check here if temp exist (i.e. files were unzipped). If yes then proceed, else exit #FTP extracted logfiles ftp -n $HOST <<END_SCRIPT quote USER $USER quote PASS $PASSWD prompt off lcd /$mainfolder/system1/temp mput $FILE quit END_SCRIPT ------------- Many thanks SunnyK |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|