[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] OT: FTP from Command line
- Subject: RE: [cobalt-users] OT: FTP from Command line
- From: "Ligard, Vidar" <vligard@xxxxxxxxx>
- Date: Wed Nov 19 07:31:02 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> Greetings!
>
> I have a shell script on my RaQ4 that FTP's a bunch of files
> to another
> server like this:
>
> ------------------------
> d=$(date +%Y-%m-%d)
>
> ftp -i ftp.server.tld <<**
> cd /mydirname
> mkdir $d
> chmod 600 $d
> cd $d
> binary
> mput *
> ls -x1A
> bye
> **
> ------------------------
>
> I need it to also chmod the files that it transfers to 600
> but I can't seem
> to get that to work.
Looks like your chmod command is setting permissions on the directory, not the files themselves
-Vidar
>
> I was hoping you smart guys would have some useful suggestions.
> - Bill
>