Guest_imported
New member
- Jan 1, 1970
- 0
I want to open a FTP connection, submit a file using a perl file. I have a script in shell and I want to convert that to perl. Here is the shell script:
#---------------------------------------------------------------------
#!/bin/ksh
file=$HOME/testent/data.in
host=`uname -n`
port=`$HOME/testent/ftpperl1`
#port=$Port
sender=GXSTESTUSER1
password=PASSWORD
receiver=GXSTESTUSER2
aprf=Testcos
type=b
snrf=$$
ftp -n<<EOF
open $host $port
user $sender $password
put $file %$receiver%$aprf%$snrf%$type
quit
EOF
If you can solve my problem, I will appreciate it.
Gagan
#---------------------------------------------------------------------
#!/bin/ksh
file=$HOME/testent/data.in
host=`uname -n`
port=`$HOME/testent/ftpperl1`
#port=$Port
sender=GXSTESTUSER1
password=PASSWORD
receiver=GXSTESTUSER2
aprf=Testcos
type=b
snrf=$$
ftp -n<<EOF
open $host $port
user $sender $password
put $file %$receiver%$aprf%$snrf%$type
quit
EOF
If you can solve my problem, I will appreciate it.
Gagan