RE: [qmailtoaster] Setting up FTP script
I use: "ftp -n ftpcommands" Content of ftpcommands: "open ftpserver user 'username' 'password' cd 'some dir' put *.* by" > This probably isn't a Qmail issue, but thought you guys could help > > I'm trying to setup an FTP script to FTP my backup file to a public > Windows server (still behind firewall). This like the qtp-backup will be > done via a cron job. Here's my script: > > cd /backup/qmailbackup > ftp server > user > cd \qmail > put *.* -f > bye > > When I run it to test I get this: > Connected to server > 220 Microsoft FTP Service > 500 'AUTH GSSAPI': command not understood > 500 'AUTH KERBEROS_V4': command not understood > KERBEROS_V4 rejected as an authentication type > Name (server:root) > > Here I can enter the login and password and get to into the FTP. When I > enter the creditals manually it goes to the FTP> prompt. Once I type > quit it tries the rest of the script. > > Thanks for your help. > > - > Qmailtoaster is sponsored by Vickers Consulting Group > (www.vickersconsulting.com) > Vickers Consulting Group offers Qmailtoaster support and > installations. > If you need professional help with your setup, contact them today! > - > Please visit qmailtoaster.com for the latest news, updates, and > packages. > > To unsubscribe, e-mail: > qmailtoaster-list-unsubscr...@qmailtoaster.com > For additional commands, e-mail: > qmailtoaster-list-h...@qmailtoaster.com > > > -- - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
Re: [qmailtoaster] Setting up FTP script
David, I would install "expect". You can get it via yum (I think) or some other repo. It will record your input and create a script which you can execute via cron. Dave David Burke wrote: This probably isn't a Qmail issue, but thought you guys could help I'm trying to setup an FTP script to FTP my backup file to a public Windows server (still behind firewall). This like the qtp-backup will be done via a cron job. Here's my script: cd /backup/qmailbackup ftp server user cd \qmail put *.* -f bye When I run it to test I get this: Connected to server 220 Microsoft FTP Service 500 'AUTH GSSAPI': command not understood 500 'AUTH KERBEROS_V4': command not understood KERBEROS_V4 rejected as an authentication type Name (server:root) Here I can enter the login and password and get to into the FTP. When I enter the creditals manually it goes to the FTP> prompt. Once I type quit it tries the rest of the script. Thanks for your help. - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com
RE: [qmailtoaster] Setting up FTP script
This probably isn't a Qmail issue, but thought you guys could help I'm trying to setup an FTP script to FTP my backup file to a public Windows server (still behind firewall). This like the qtp-backup will be done via a cron job. Here's my script: cd /backup/qmailbackup ftp server user cd \qmail put *.* -f bye When I run it to test I get this: Connected to server 220 Microsoft FTP Service 500 'AUTH GSSAPI': command not understood 500 'AUTH KERBEROS_V4': command not understood KERBEROS_V4 rejected as an authentication type Name (server:root) Here I can enter the login and password and get to into the FTP. When I enter the creditals manually it goes to the FTP> prompt. Once I type quit it tries the rest of the script. Thanks for your help. - Qmailtoaster is sponsored by Vickers Consulting Group (www.vickersconsulting.com) Vickers Consulting Group offers Qmailtoaster support and installations. If you need professional help with your setup, contact them today! - Please visit qmailtoaster.com for the latest news, updates, and packages. To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com