|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
Hi gurus !
I am developing a FTP script which will copy all the files from one server to another server and then I need to use CHMOD 755 * to set permissions of all the files just copied to the remote server. mput * chmod 755 * CHMOD gives me an error [ *: No such file or directory ] CHMOD works fine If I specify the full file name instead, any help???? Thanks |
| Sponsored Links |
|
|
|
|||
|
Well it depends on the system that you are connected to:
if you are connected to mainframe and you want to do chmod --> it will say not valid and even if u are connected to Unix server they can block users typing anything in the ftp shell. ![]() |
|
|||
|
<<<DISCLAIMER>>> i do not recommend doing this unless you know for SURE that the only files in the current remote directory are the files you just put there. you don't want to arbitrarily change permissions on other files <<<DISCLAIMER>>> the syntax you want to use in order to chmod 755 all the files in the current remote directory is this: Code:
site chmod 755 * if there ARE other files in the directory, then i suggest you re-write the script so that it puts one file at a time and then you can site chmod 755 one file at a time |
| Sponsored Links |
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| changing permissions on a 444 file (ie chmod 444) | ajcannon | UNIX for Dummies Questions & Answers | 1 | 08-31-2007 11:48 AM |
| Unix chmod permissions | whiterabbit | UNIX for Dummies Questions & Answers | 2 | 04-25-2006 07:02 PM |
| ls and chmod numeric permissions | rondebbs | UNIX for Dummies Questions & Answers | 1 | 12-29-2005 12:57 AM |
| chmod permissions | himurak | UNIX for Dummies Questions & Answers | 1 | 11-30-2004 10:13 PM |
| directory permissions and CHMOD | ncarmstrong | UNIX for Dummies Questions & Answers | 3 | 08-14-2002 02:00 PM |