command runs at prompt not in script
Hi,
I would appreciate help with the following. It seems that when I run a
command from the command prompt the perl script (let's call this myperl.pl)works okay.
However, I would like to automate the process so can I put the command into a shell script (lets call this myshell.sh). The problem is it seems that the perl script starts to run but then hangs. This script is logging into and then supposed to load a database.
I don't think there is anything wrong with the perl script since I can call it from the command prompt. Also, I have used a shell script to run other perl scripts without problems. So I think I am able to call perl scripts properly.
I think perhaps the problem is that the command line is so long that it wraps to the next line when I am typing (there are a lot of different flags and paramters required to call this perl script). Could this be the cause are there some weird? newline characters being inserted that I can't see or is the cause something totally different?
thanks a bunch!
|