Ok, Im not anywhere near competent at scripting, much less for the csh, but Im trying to hook something together here at work to keep from having to rebuild systems everytime a directory gets corrupted. Im a little unsure on some of the code where Im trying to telnet into another machine and how to pass the login information to the other machine. Here is what I have right now:
'telnet $node_name root $password >telnet.log 2>&1'
'cd /'
'tar cvf $nodename.tar $target_dir > tar.log 2>&1'
Anyone have any insight into this sort of thing?