ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When i comment the line 9 #spawn "/home/ryan/parsedlogs" it run but the says:
ftp> hash
Hash mark printing on (1024 bytes/hash mark).
ftp> mput /home/ryan/parsedlogs/*.*
local: /home/ryan/parsedlogs/yeheylogs.2003071819171058527061 remote: /home/ryan/parsedlogs/yeheylogs.2003071819171058527061
200 PORT command successful.
553 Could not determine cwdir: No such file or directory.
local: /home/ryan/parsedlogs/yeheylogs.2003072419031059044582 remote: /home/ryan/parsedlogs/yeheylogs.2003072419031059044582
200 PORT command successful.
553 Could not determine cwdir: No such file or directory.
local: /home/ryan/parsedlogs/yeheylogs.2003072519541059134083 remote: /home/ryan/parsedlogs/yeheylogs.2003072519541059134083
200 PORT command successful.
553 Could not determine cwdir: No such file or directory.
local: /home/ryan/parsedlogs/yeheylogs.2003072519591059134350 remote: /home/ryan/parsedlogs/yeheylogs.2003072519591059134350
200 PORT command successful.
553 Could not determine cwdir: No such file or directory.
local: /home/ryan/parsedlogs/yeheylogs.2003072613591059199175 remote: /home/ryan/parsedlogs/yeheylogs.2003072613591059199175
200 PORT command successful.
553 Could not determine cwdir: No such file or directory.
local: /home/ryan/parsedlogs/yeheylogs.2003072617141059210868 remote: /home/ryan/parsedlogs/yeheylogs.2003072617141059210868
200 PORT command successful.
553 Could not determine cwdir: No such file or directory.
local: /home/ryan/parsedlogs/yeheylogs.2003072617531059213223 remote: /home/ryan/parsedlogs/yeheylogs.2003072617531059213223
200 PORT command successful.
553 Could not determine cwdir: No such file or directory.
local: /home/ryan/parsedlogs/yeheylogs.2003072618361059215790 remote: /home/ryan/parsedlogs/yeheylogs.2003072618361059215790
200 PORT command successful.
553 Could not determine cwdir: No such file or directory.
local: /home/ryan/parsedlogs/yeheylogs.2003072817571059386223 remote: /home/ryan/parsedlogs/yeheylogs.2003072817571059386223
200 PORT command successful.
553 Could not determine cwdir: No such file or directory.
I dont think there's no file, the script cant upload it... I don't Get it...
I believe you forget to check if remote server has the same
path "/home/ryan/parsedlogs". If you really need that path,
you can use "send "mkdir $path" to create it, or not, you
You need add some sentences before <send "mput..." >:
send "cd $DESTINATION_PATH" #change remote working path.
expect "ftp>"
send "lcd /home/ryan/parsedlogs\" # change local working path.
expect "ftp>"
send "mput *.*\r"
expect "ftp>"
Also please don't use < expect "ftp>"> like above, because no matter failure or success result always give you ftp>.
Quote:
Originally posted by coolest Hi David_Ross,
When i comment the line 9 #spawn "/home/ryan/parsedlogs" it run but the says:
553 Could not determine cwdir: No such file or directory.
local: /home/ryan/parsedlogs/yeheylogs.2003072817571059386223 remote: /home/ryan/parsedlogs/yeheylogs.2003072817571059386223
200 PORT command successful.
553 Could not determine cwdir: No such file or directory.
I dont think there's no file, the script cant upload it... I don't Get it...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.