Jump to content

Anyway to control ftp session through shell script?


Recommended Posts

Here's the deal. On my school account, I have a directory that I want to backup and upload to my web account. I want to create a shell script that will allow me to do the entire procedure with one command.

 

Here is what I want to do:

zip the required directory

open ftp

open my web account

cd to the appropriate directory

upload the zip file

close the ftp session

delete the zip file from my home account

 

Zipping the file and deleting it are no problem. However, how do I control an ftp session once it is opened?

 

The trick here is that I can't install any software as it is the universities server.

 

Anyone got any ideas?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...