well, to make a shell script, you make a text file. the first line has to be specially formatted though.
where '/path/to/executable' is '/bin/sh' or '/bin/tcsh' [or other shell, or other exectuable, like '/usr/bin/perl']. each line after that can then be any command from the respective shell [or program]. lines starting with '#' [hash] are usually comments.
unfortunately, in the situations u presented, i dont think a shell script will really do. first off, when a command is executed, the script waits for it to finish, before moving on [unless its ended with a '&']. and in either case, you can't throw ur password at it very easily. you could try piping you password to ssh's stdin, but i think ssh clears stdin before reading the pass [for extra protection from these kinds of scripts
]. and, assuming u can get ur password to the ssh program, u'd then be at name.server.com, and not at [your place], so ur script would just be waiting for ssh to exit. u could have a script, server side, that would do the end of the job [cd /Folder && ls], but now its 2 scripts, and we haven't gotten to the ftp yet.
ftp is actually pretty easy to do. actually, i cheated, and used 'curl'. with ftp its not quite easy [or possible as i see it], but with curl its easy enough. heres the line for ftp:
[code]curl <a href="ftp://userName:assWord@name.server.com/Folder/[/CODE
if u dont put the password, curl will prompt for it, but either way, it ls's the directory. [curl is a great lil program that can download any url (http, ftp, https, ..) in 1 line].
edit: ubb keeps ass-fargin me
[ 01-06-2003: Message edited by: thuh Freak ]</p>