LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-03-2012, 07:32 PM   #1
rpd25
LQ Newbie
 
Registered: Dec 2011
Posts: 12

Rep: Reputation: Disabled
Restarting the program


Hi,

I use gfortran to run the code. Some times I need to stop the program
and restart it. On restarting I need to run the program from the beginning.

Is there any script or option available to restart the program from where
it stopped? This script/option will be immensely useful for programmers.

Thanks,
Rakesh
 
Old 01-03-2012, 07:59 PM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
If you're running a program from the command line, you can type <Ctrl>-Z to interrupt and suspend the program. Then, you bring it back to life by typing fg (for ForeGround.)
 
  


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
c program segfaults when restarting mysql - need help analyzing core file in gdb invalid entry Programming 11 12-22-2011 02:38 PM
Wine, restarting an intalled program scott4957 Linux - Software 2 06-18-2006 11:43 AM
restarting krock923 Debian 6 02-01-2006 02:38 PM
After restarting program keeps starting up with system Relja Linux - General 3 07-23-2004 01:07 PM
SSH-Want to see program output without restarting it. Facekhan Linux - Newbie 4 05-05-2003 02:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:41 AM.

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
Open Source Consulting | Domain Registration