Discussion Locked

ftp syntax in ksh at sun solaris

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to use ftp in ksh ( sun solaris)and using the folling syntax:

#!/bin/ksh
ftp servername <

4 replies

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.