LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-11-2009, 07:17 PM   #1
MikeQ
LQ Newbie
 
Registered: Jun 2009
Posts: 18

Rep: Reputation: 0
run script in background


how do i run a perl script in the background so i can still use the same console window? (using putty)
 
Old 09-11-2009, 07:21 PM   #2
adamben
Member
 
Registered: Feb 2007
Distribution: slackware,gentoo,ubuntu
Posts: 50

Rep: Reputation: 17
Use the ampersand...

# perlcommand &
 
Old 09-11-2009, 07:21 PM   #3
adamben
Member
 
Registered: Feb 2007
Distribution: slackware,gentoo,ubuntu
Posts: 50

Rep: Reputation: 17
Additionally, try checking out "screen" - small learning curve, but incredibly useful.

One thing I failed to mention above -

pressing ctrl+z and then using the bg command will resume the job in the background - you can use fg to bring it to the front.

Last edited by adamben; 09-11-2009 at 07:23 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run the /usr/sbin/in.tftpd script in the background continuously? sharu99 Linux - Newbie 8 10-31-2008 01:20 AM
What is the easiest way to run a shell script in the background on 10 servers? abefroman Linux - Software 3 03-12-2008 10:24 AM
How to run a shell script in a background? anandv_1234 Linux - Newbie 3 12-23-2007 04:03 AM
how do i get a shell script to run in the background? tjyorkshire Programming 4 07-06-2007 03:28 AM
How to run a bash command in the background from perl script professorfrink Programming 3 11-13-2003 04:02 PM


All times are GMT -5. The time now is 08:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration