12-05-2009
To anyone who reads this and has the same problem,
I've figured it out...
The easiest way is to have the PerlScript.pl output to a file. If you just use the standard print command in perl without specifying the name of an output file, the output will be saved as PerlScript.pl.o<Job Number>.
As such, if you run 50 jobs at the same time you will end up with 50 output files, one for each job.
You can then cat PerlScript.pl.o* > FinalOutput.txt and it will also be saved in a sorted fashion (because your output files will be sorted by the job number).
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm new to cron and I would like to know if this cron entry looks right.
Every monday to friday, at 9:15 AM execute the script called done_att.sh
Every monday to friday, at 3:15 PM execute the script called start_att.sh
15 09 * * /u54/jobs/done_att.sh
45 15 * *... (1 Reply)
Discussion started by: ted
1 Replies
2. UNIX for Dummies Questions & Answers
I would like to add a job using cron. I have following questions
- cron jobs are launched using what login-id
e.g. is the script launced using my login-id
- In which directory would the cron jobs be launched ?
- where do the environment variables required in the script being lauched come... (3 Replies)
Discussion started by: sharanbr
3 Replies
3. UNIX for Dummies Questions & Answers
I have some cron jobs that are taking a might long time. That is because they are screen scrapers and I inserted an extra long pause (10 minutes between screens) to be extra polite and minimize network traffic. I was going to have them run once a day but now I'm thinking once a week.
How do I... (2 Replies)
Discussion started by: siegfried
2 Replies
4. UNIX for Advanced & Expert Users
Before I get a million and one suggestions on all the things that could be wrong with my scripts - let me assure everyone that this is not the issue.
i have a RH EL ES4 server that stopped running all cron jobs except hourly, daily, weekly.
This has affected all users including root. No... (7 Replies)
Discussion started by: bill_k_Lopez
7 Replies
5. OS X (Apple)
I have a cron job set up to run a script on my Leopard Server every night. The job is set up as root, and when I run the script manually, it runs fine.
The problem is that it is not doing anything when it runs at night. In the cron log, it says it ran, but did not output the results to the file it... (3 Replies)
Discussion started by: yodomino6
3 Replies
6. UNIX for Dummies Questions & Answers
im doing at now <return>
touch ~/Desktop/file.txt
<ctrl d>
and file is never created though it says job 7 at Wed Mar 17 15:15:55 2010
why? (4 Replies)
Discussion started by: glev2005
4 Replies
7. Shell Programming and Scripting
I need to process 50 sqlplus scripts which are listed in a text file. I need to develop a shell script that'll read this file and run these sqlplus scripts. At any point of time, the number of sqlplus scripts running shouldn't exceed 6. If any of the sqlplus scripts completes successfully then... (17 Replies)
Discussion started by: gctex
17 Replies
8. UNIX for Dummies Questions & Answers
hi all,
I have 3 individual scripts to perform the task . 2nd script should run only after the 1st script and 3rd script must run only after first 2 scripts are executed successfully.
i want to have a single script that calls all this 3 scripts .this single script should execute the 2nd script... (1 Reply)
Discussion started by: Rahul619
1 Replies
9. UNIX for Advanced & Expert Users
Hi all,
Today, I want to ask how to submit multiple qsub jobs.
I want to submit 100 .sh files for the simulations.
The name of files is
run_001.sh,
run_002.sh,
run_003.sh,
.....
.....
run_100.sh
Submitting each file manually are time-consuming, hence, I want to make another .sh file... (11 Replies)
Discussion started by: syg3434
11 Replies
10. Shell Programming and Scripting
I have multiple jobs and each job dependent on other job.
Each Job generates a log and If job completed successfully log file end's with JOB ENDED SUCCESSFULLY message and if it failed then it will end with JOB ENDED with FAILURE.
I need an help how to start.
Attaching the JOB dependency... (3 Replies)
Discussion started by: santoshkumarkal
3 Replies
QSUB(1) User Contributed Perl Documentation QSUB(1)
NAME
qsub - submit a batch job in a familiar pbs format
SYNOPSIS
qsub [-a date_time]
[-A account_string]
[-b secs]
[-C directive_prefix]
[-e path]
[-I]
[-l resource_list]
[-m mail_options] [-M user_list]
[-N name]
[-o path]
[-p priority]
[-q destination]
[-W additional_attributes]
[-h]
[script]
DESCRIPTION
The qsub command displays information about nodes. It is aimed to be feature-compatible with PBS' qsub.
OPTIONS
-a Display information for all nodes. This is the default if no node name is specified.
-I Interactive execution.
-j join
It is not necessary (currently also not possible) since stderr/stdout are always joined.
-v [variable_list]
Exporting single variables via -v is not supported, since the entire login environment is exported by the default.
-V The -V option to export the current environment is not required since it is done by default.
-? | --help
brief help message
--man
full documentation
perl v5.14.2 2012-04-10 QSUB(1)