#!/bin/csh -f # This will do everything neccessary to install everything, If you know # what youre doing with unix, you night want to browse through this to see # what I'm fiddling with. # This is the default place for FTPEXTRAS to go. You can change it, but I # dont gaurentee everything will work right. I highly recommend leaving it. # You'll have to make sure the directories you want exist, I dont create # them, beyond the default of course. # If you change this then please note that the commands below that move # current directory around, wont be right. set FTPEXTRAS = $HOME/FtpExtra # Ok move this whole thing to the right place. echo If you see a warning about identical directories, ignore it. cd .. mv FtpExtra $HOME cd $FTPEXTRAS # Compile ftpmenu.c Using cc is important, gcc doesnt work right. Did # you make the required changes to ftpmenu.c? cc -O -o $FTPEXTRAS/bin/ftpmenubase $FTPEXTRAS/ftpmenu.c -lcurses -ltermcap # add some lines to youre .netrc cat >> $HOME/.netrc << stop stop mv $HOME/.netrc $HOME/.netrc.bak cat $HOME/.netrc.bak $FTPEXTRAS/ident $FTPEXTRAS/netrc > $HOME/.netrc chmod 700 $HOME/.netrc # add some lines to your .cshrc: What? you dont use Csh, then youll have to # add the equiveanlent to the equivalent file, in your shell. I think # .profile for Bourne shell. Look in FTPEXTRAS/cshrc. Add all that stuff. mv $HOME/.cshrc $HOME/.cshrc.bak cat $HOME/.cshrc.bak $FTPEXTRAS/ident $FTPEXTRAS/cshrc > $HOME/.cshrc # mail me a auto-note so I get some feel for who used this. If you have # a good reason not to want to do this, just take out these lines. # I promise, "No salesmen will call, no one will visit" :-) set user = `whoami` set host = `hostname` set domain = `domainname` mail -s 'Ftp Scripts Used' jedavis@blondie.ucdavis.edu << stop This is just note to say $user @ $host . $domain has run the ftp scripts. -James (to myself of course) stop .