Bash Understanding - Help

Dan Track dan.track at gmail.com
Mon Oct 2 14:34:18 UTC 2006


Hi

I've got this little script and to run the commands I copy the
commands into my paste buffer by selecting the lines. The script was
opened in vi.

The script contains some parts that require manual intervention so for
example I would have:

cd /opt
mkdir java
scp -rp server:/opt/java/java* java/
cd java
ls

If I paste the above to a shell it will run all the way up until the
"scp" command. After completing the scp command the shell returms me
to a prompt. The rest of the script isn't run. Can someone please
explain why this is happening?

Thanks in advance
Dan




More information about the fedora-list mailing list