From: Kae Verens (kverens at domain contactjuggling.org)
Date: Thu 26 Sep 2002 - 11:23:41 IST
Kevin O' Riordan wrote:
> Hi Kae,
>
> you could use shell 'here documents'. Not as sophisticated as perl or
> expect, but can probably be made to do the job. The code below is
> untested, crude, may contain artificial preservatives, blah.
Thanks Kevin. That script looks like it may be useful for what I want.
I'll post a URL for the finished script when it's ready.
Basically, the problem was that I am a web developer in charge of about
60 sites. Every time a file is changed locally, I have to update the
online copy.
The console method would be to look up the password, log in through FTP,
go to the directory, and upload the file.
The GUI method would be to open the GUI, find the right profile,
navigate to the local and online locations, and upload the file.
Both methods are a pain in the neck. I just want to type "upload
file.php" and trust the computer to get the job done while I go onto the
next job.
The expect and bash scripts are both good steps towards this. I'll
bastardize them both and see if they work out. Thanks guys.
-- Kae Verens _______\_ webworks.ie work: www.webworks.ie _____\\__ webhosts play: www.contactjuggling.org ___\\\___ design kae: kverens.contactjuggling.org _\\\\____ code
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:19:05 GMT