If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > anyone has an idea how to chmod of the remote file from ftp client?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-25-03, 06:31
r390gt1 r390gt1 is offline
Registered User
 
Join Date: May 2003
Posts: 27
Post anyone has an idea how to chmod of the remote file from ftp client?

in AIX 4.3.3, the default ftp client does not support the chmod command as show in the following output:

/plib/dwl0/temp $ ftp 127.0.0.1
Connected to 127.0.0.1.
220 rs6k660a FTP server (Version 4.1 Wed Feb 27 11:03:17 CST 2002) ready.
331 Password required for db2adm00.
230 User db2adm00 logged in.
ftp> help
Commands may be abbreviated. Commands are:

! image recv
$ lcd reget
account local reinitialize
append ls remotehelp
ascii macdef rename
bell mdelete reset
binary mdir restart
block mget rhelp
bye mkdir rmdir
carriage-control mls rstatus
case mode runique
cd modtime safe
cdup mount send
clear mput sendport
close nmap site
copylocal nlist size
cr non-print status
delete ntrans stream
debug open struct
dir passive sunique
disconnect private system
ebcdic prompt telnet
exp_cmd protect tenex
file proxy trace
form put type
get pwd user
glob quit verbose
hash quote ?
help record
ftp>

does anyone has an idea how to chmod of the remote file from ftp client?
or is there any way to execute a remote command to act like a chmod ?
Reply With Quote
  #2 (permalink)  
Old 06-26-03, 08:06
sypher sypher is offline
Registered User
 
Join Date: Jan 2003
Location: Scotland
Posts: 17
Re: anyone has an idea how to chmod of the remote file from ftp client?

Quote:
Originally posted by r390gt1
in AIX 4.3.3, the default ftp client does not support the chmod command as show in the following output:

/plib/dwl0/temp $ ftp 127.0.0.1
Connected to 127.0.0.1.
220 rs6k660a FTP server (Version 4.1 Wed Feb 27 11:03:17 CST 2002) ready.
331 Password required for db2adm00.
230 User db2adm00 logged in.
ftp> help
Commands may be abbreviated. Commands are:

! image recv
$ lcd reget
account local reinitialize
append ls remotehelp
ascii macdef rename
bell mdelete reset
binary mdir restart
block mget rhelp
bye mkdir rmdir
carriage-control mls rstatus
case mode runique
cd modtime safe
cdup mount send
clear mput sendport
close nmap site
copylocal nlist size
cr non-print status
delete ntrans stream
debug open struct
dir passive sunique
disconnect private system
ebcdic prompt telnet
exp_cmd protect tenex
file proxy trace
form put type
get pwd user
glob quit verbose
hash quote ?
help record
ftp>

does anyone has an idea how to chmod of the remote file from ftp client?
or is there any way to execute a remote command to act like a chmod ?



If it is a unix box your ftp'ing could you not use rsh to carry out chmod, instead of using FTP
Reply With Quote
  #3 (permalink)  
Old 09-18-03, 16:59
wbmoodie wbmoodie is offline
Registered User
 
Join Date: Sep 2003
Posts: 1
Re: anyone has an idea how to chmod of the remote file from ftp client?

Try:
ftp> init chmod 777 filename
(works on AIX even though it's not in the helps)...

Quote:
Originally posted by r390gt1
in AIX 4.3.3, the default ftp client does not support the chmod command as show in the following output:

/plib/dwl0/temp $ ftp 127.0.0.1
Connected to 127.0.0.1.
220 rs6k660a FTP server (Version 4.1 Wed Feb 27 11:03:17 CST 2002) ready.
331 Password required for db2adm00.
230 User db2adm00 logged in.
ftp> help
Commands may be abbreviated. Commands are:

! image recv
$ lcd reget
account local reinitialize
append ls remotehelp
ascii macdef rename
bell mdelete reset
binary mdir restart
block mget rhelp
bye mkdir rmdir
carriage-control mls rstatus
case mode runique
cd modtime safe
cdup mount send
clear mput sendport
close nmap site
copylocal nlist size
cr non-print status
delete ntrans stream
debug open struct
dir passive sunique
disconnect private system
ebcdic prompt telnet
exp_cmd protect tenex
file proxy trace
form put type
get pwd user
glob quit verbose
hash quote ?
help record
ftp>

does anyone has an idea how to chmod of the remote file from ftp client?
or is there any way to execute a remote command to act like a chmod ?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On