Questions tagged [background]

28 questions
35
votes
7 answers

If I launch a background process and then log out, will it continue to run?

Asking this after a prolonged discussion with a coworker, I'd really like a clarification here. I launch a background process, either by appending "&" to the command line or by stopping it with CTRL-Z and resuming it in background with "bg". Then I…
Massimo
  • 68,714
  • 56
  • 196
  • 319
15
votes
5 answers

What is the best way to run a remote ssh command in background but still displaying?

I need to run SSH commands remotely with the output displaying locally. But if the connection breaks I want the command to still run. I am not talking so much about logging in and executing but doing ssh user@remotehost 'commands && command etc' How…
vfclists
  • 1,562
  • 5
  • 20
  • 36
7
votes
2 answers

Start Sinatra app in the background with stdout and stderr redirected (append) to a file

I have a Sinatra app which I run on my local machine using ruby app.rb. While deploying it on a remote machine via ssh, how do I run it in background and redirect stdout and stderr to a log file? On a restart, I want to preserve the previous logs so…
letronje
  • 429
  • 1
  • 6
  • 16
4
votes
1 answer

PHP Apache XAMPP Run Multiple Scripts from CLI in Background

How can I simultaneously run dozens of PHP scripts in the background from XAMPP's command line interface? Someone suggested a batch file, but when I tried executing this: start php 1.php start php 2.php start php 3.php It only opened a command…
Pamela
  • 187
  • 1
  • 13
3
votes
4 answers

How can I run a python script on Windows machine from Linux using ssh as a background task?

I have to orchestrate some script tasks among few Linux machines and a Windows machine. ssh works fine for linux machines suing below: ssh mysuser@targetLinuxmachine "python '/pathtomyscript/myscript.py' &" But the same method doesn't work as…
MRK
  • 33
  • 1
  • 5
3
votes
1 answer

Run program on "Reconnect Session"

I just implemented BackInfo on our servers, deployed via GPO. Everything is working as intended while users and administrators log on and off. Problems arise when a user disconnects and reconnects an RDP session. I don't know if it's BackInfo that…
Simon L
  • 113
  • 5
2
votes
4 answers

Running an application in background

I have a web app on a freebsd server. An app is a single executable file, with a built-in webserver. My default shell is zsh. When I'm running it as "./my_website &" and close a connection, it terminates. However, when I switch to bash by…
Dari
  • 121
  • 2
2
votes
4 answers

put a job in the bg and run it?

I know there are two or more ways to run a job and place it in the background. Right now I used ctrl-z to put a scp transfer in the background because I noticed it was going to take a while. How do I run the process in the background so I can write…
user274
2
votes
3 answers

Is there any way to launch screen with a background process but have it not terminate when the process exits?

Launching a screen session with a background process using -d -m causes the screen session to terminate when the process exits. Is there any way to get the screen session to stick around after the process exits, but still launch it without any user…
fields
  • 690
  • 1
  • 10
  • 21
2
votes
1 answer

Windows 7 Desktop background picture in Group Policy displaying black - XP working correctly

We want everyone on the Windows Domain to have the same desktop background. This is set up in a Group Policy. This works great in Windows XP but the Windows 7 machines display a black background. I have re-created the Group Policy, done various…
Shawn Gradwell
  • 188
  • 1
  • 3
  • 10
1
vote
1 answer

Cannot reproduce a GPO effect due to server version?

I am running a domain with functional level Windows Server 2008 R2, within this environment I have host machines that run Windows Server 2012 R2. This environment is running nothing custom everything is about as "out-of-the-box" as it can be. I…
user305997
  • 19
  • 1
1
vote
1 answer

use correct-resolution background desktop image

I have a desktop background image (a picture) in a half-dozen different resolutions, that I'd like to deploy to a disparate collection of computers with different monitors and video cards and whatnot. Laptops, netbooks, desktops, widescreen, and…
Rob Bos
  • 824
  • 7
  • 8
1
vote
2 answers

Shell Script Launching Child Processes

Disclaimer: I'm totally new to shell scripting, but have quite a bit of experience in other languages like PHP and Obj-C. I'm writing my first daemon script. Here are the goals: I want it to run in the background I want it to be triggered by an…
Matt James
  • 113
  • 5
1
vote
2 answers

How can you see the processes which you put to background?

This question is based on this thread. How can you see the processes which you put to background?
1
vote
3 answers

Unable reset settings in .bashrc without stopping updates

I am updating my ports in MacPorts which may take a day. I have changed my dot -files. I would like to test them without shutting the updates down. I have ^Z the installation and restarted my shell. However, I am using Screen such that my settings…
1
2