...so I read "The Pragmatic Programmer" and they stressed the value of learning shell scripting!
I'm in a UNIX environment but have a Windows XP workstation.
I'm using Telnet to issue UNIX commands. I've done plenty of chmod's, command line ftp and stuff, but written no scripts to this point.
I've written a simple script with commands which work on the command line, but not from the script.
In essence it's this:
- #!/bin/sh
- echo "starting..."
- ftp -inv <<EOF
- open <host>
- user me mypwd
- cd /dir/xml/
- mput /dir/xml/*.*
- quit
- EOF
When I run it line 6 produces a 250 CWD command successful
line 7 produces "?Invalid command"
At least I think its line 7 - it doesn't actually say.
Appreciate any pointers to get me going on this.
Thanks,
Paul