ftp syntax in ksh at sun solaris
I want to use ftp in ksh ( sun solaris)and using the folling syntax:
#!/bin/ksh
ftp servername <
Software
I want to use ftp in ksh ( sun solaris)and using the folling syntax:
#!/bin/ksh
ftp servername <
by pkghos
by stillatit
If you use ftp servername, ftp will attempt to automaticlly login to the specified server, and your user command will fail. You need to add the -n parameter to prevent the automatic login.
Try writing to a file (foo):
user myusername
pass mypassword
bin
put myfile
bye
then using
ftp -n servername
by pkghos
I have created a file foo using vi at Solaris as foolows:
user oracle
pass oracle1
bin
put test
bye
and using ftp -n sname
by pkghos
I am using vi at Solaris as foolows:
user oracle
pass oracle1
bin
put test
bye
and using ftp -n sname
This discussion is closed to new replies.
Sort by Trending