Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> How can I make my program run in the background?
post Feb 27 2006, 03:01 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 2
Joined: 27-February 06
From: Canada
Member No.: 6,103

I made some small basic programs for the linux OS using C/C++... they work fine and all when you run them from the command line (ex ./program1 ) but once you hit enter, it just sits there and if you close the konsole (this is in the KDE GUI btw) it then shuts down the program.

What I want to know is, is there a way to program it so that once you run it from the command line, it starts the program and runs in the background, much like an HTTP or any other server does and still runs in the background once you leave the command line or Konsole?

Go to the top of the page
+Quote Post
post Feb 27 2006, 12:51 PM
Post #2

Its GNU/

Group: Support Specialist
Posts: 1,284
Joined: 14-November 04
From: Southampton, Hampshire
Member No.: 4,165

./program1 > /dev/null &

Will run the program, direct any console output to the bit bucket, and push the application to the background

Fixed your problem? Let us know! Online Event Management
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 15th July 2018 - 07:56 PM