Search Results

Search: Posts Made By: fbs777
2,859
Posted By fbs777
the script already exist: ftp -v -n...
the script already exist:
ftp -v -n ftp.site.com <<END_OF_SESSION
user Foo 3122
ascii
lcd /home/foo/mywebsite
mput *
mput *.*
bye
END_OF_SESSION

The problem is i cant left open the...
2,859
Posted By fbs777
sorry, i cant understand how to solve the...
sorry, i cant understand how to solve the problem.

Lets make more simple: forget about the variables, this script works:

#!/bin/bash
ftp -v -n ftp.site.com <<END_OF_SESSION
user Foo 3122...
2,859
Posted By fbs777
this command dont finish, keeps w/ a ">" waiting...
this command dont finish, keeps w/ a ">" waiting to finish the command:
# server=ftp.site.com && user=Foo && passw=3122 && ftp -v -n $server << $(echo -e "EOT\nuser $user...
2,859
Posted By fbs777
how to convert this script in command line?
im trying to use this shellscript in one command line, but isnt working.

shellscript:
SERVER=ftp.site.com
USER=Foo
PASSW=3122

ftp -v -n $SERVER <<END_OF_SESSION
user $USER $PASSW...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 01:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy