Help submitting jobs to cluster

Hi

I am new to submitting jobs. I am trying to submit my perl file to the cluster.

This is what my shell file looks like (shell1.sh):

#!/bin/sh
#$ -S /bin/sh

cd data/projects/mydir/abbc
perl autocorro.pl

followed by qsub shell1.sh

It takes the qsub, but does nothing. I check qstat and see that I have a job running, but it's not doing anything. But: perl autocorro.pl works at the command line. just not in 'batch' form. Thanks

---------- Post updated at 10:06 PM ---------- Previous update was at 09:39 PM ----------

I've tried making shell script:

#
perl autocorro.pl

qstat just keeps running and running, even though using the command line 'perl autocorro.pl' takes 5 seconds.

---------- Post updated at 10:18 PM ---------- Previous update was at 10:06 PM ----------

Oh.

Argh, I was qeued. Shows what I get for rushing.

There's a forum for questions concerning cluster computing. For future reference, use Senior Advisor - http://www.unix.com. Anyway, most medium-sized clusters have a dedicated cluster administrator or cluster services support staff. Is that not the case on your cluster?