perl script dies altogether when I put an & after it


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers perl script dies altogether when I put an & after it
# 1  
Old 08-01-2008
perl script dies altogether when I put an & after it

ignore
# 2  
Old 08-01-2008
"&" should put the perl script in the background, still running.

when you run it does it display somethign like\
Code:
# perl some.pl &
[1] 19296
#

19296 whould be the PID of the perl script.
# 3  
Old 08-01-2008
Also you can look into perl "forking".

Forks a new process using the fork( ) system call.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

[Solved] Process dies when launched in system startup script

Good morning! I'm trying to add Maven to the system boot by the moment without success. Testing the operation of the script I realize that the process isn't persistent when the program is launched with the start option. ---- #Startup Script ---- #! /bin/sh # chkconfig: 345 99 1 #... (5 Replies)
Discussion started by: carpannav
5 Replies

2. Homework & Coursework Questions

Need help with a Perl Script using Pop, Shift, & Push

Hello everyone, I am new to Perl and I am having some issues getting a script to work. I have to create a script that uses an array of 52 cards, "shuffles" the cards (using loops with the pop, shift, and push commands), and prints out the top five. This is not a randomizing of the array just a... (2 Replies)
Discussion started by: Hax0rc1ph3r
2 Replies

3. Shell Programming and Scripting

Perl script to get info from specific rows & columns (.xls file)

Hi all, I want to read some specific rows & columns in the .xls file with my script to get the data to be manipulated. Now, I can read the .xls file correctly & i can go to the specific sheet that I want but i have a problem to specify the specific rows & columns. I mean, I want to get the info... (0 Replies)
Discussion started by: Yohannita
0 Replies

4. Shell Programming and Scripting

How to put date range from a perl & sql script

Hi Guys, Can someone please help me on adding/inserting a variable date to an sql scipt? Basically I want to assign a 7 days date range. As shown below.. #!/usr/bin/perl use strict; use Env qw(ORACLE_HOME); my $SQLPLUS='/opt/oracle/product/10.1.0/db_1/bin/sqlplus -S... (1 Reply)
Discussion started by: pinpe
1 Replies

5. Shell Programming and Scripting

Perl Script to find & copy words from Web.

I need to write a perl script to search for a specific set of numbers that occur after a series of words but before another. Specifically, I need to locate the phrase today at the summit, then immediately prior to the words tonnes/day copy the number that will be between 100 and 9,999, for example,... (1 Reply)
Discussion started by: libertyforall
1 Replies

6. Shell Programming and Scripting

need an AWK code: put in parallel & average them

Hi, I have a data as follow: 1, 1.0 4.00 1, 2.0 4.00 1, 3.0 4.43 1, 4.0 4.40 1, 5.0 4.48 2, 1.0 0.00 2, 2.0 4.40 2, 3.0 3.40 2, 4.0 4.40 2, 5.0 1.47 3, 1.0 1.00 3, 2.0 3.40 3, 3.0 2.40 3, 4.0 2.40 3, 5.0 2.40 (1 Reply)
Discussion started by: nica
1 Replies

7. UNIX for Dummies Questions & Answers

Where do i put ifconfig & route add for boot?

SCO v5.0.6 I figured out what command lines I need to get SSH working, but where do I put these command lines so they stick when booting? #ifconfig net0 ... netmask ... up #route add default ... I know I can add the default gateway to /etc/default/tcp, but... I would rather run a... (2 Replies)
Discussion started by: vdi_jeanne
2 Replies

8. UNIX for Advanced & Expert Users

script dies prematurely and unpredictably

Hi, I have over 5 gb of data in a files structure in which month folders are in year folders, day folders are in month folders, and individual climate stations are in each day. I am trying to extract precipitation measured at 5 minute intervals for a duration of 15 years, but the script never... (2 Replies)
Discussion started by: mlw63@me.com
2 Replies

9. Shell Programming and Scripting

search & replace password perl script

I wanted a perl script to be done for Password search & replace in two files. For Example: Example 1)--i am having a file such as cat /opt/customer/Ariba/UAT/ariba/app/buyer/Server/config/Parameters.table Example 2)--and i am having a other file in other location such as cat... (4 Replies)
Discussion started by: shellscript22
4 Replies

10. Shell Programming and Scripting

script to change default route when primary gateway dies

Hello all! We have two fedora routers one at each site. What we are trying to do worked using freesco but not on fedora, i'm not very good at scripting and need a little guidence. Basicly what we are trying to do is if the primary line dies, the router will change it's routes to go through our... (0 Replies)
Discussion started by: slacker
0 Replies
Login or Register to Ask a Question