Ok got it ....
put & right after the command.
ex. ls&
preventing it stop when logging off you have to use 'nohup'
ex. nohup ls&
Purpose is to let a bash script run in the background.
Any ideas anyone ?
Thanks already ...
Ok got it ....
put & right after the command.
ex. ls&
preventing it stop when logging off you have to use 'nohup'
ex. nohup ls&
--Actually you can ' disown %1 ' or whatever the job # is instead. (This comes in very handy if you wanted unattended operation but forgot the nohup.) It's a bash internal command: (man bash)
Code:disown [-ar] [-h] [jobspec ...] Without options, each jobspec is removed from the table of active jobs. If the -h option is given, each jobspec is not removed from the table, but is marked so that SIGHUP is not sent to the job if the shell receives a SIGHUP. If no jobspec is present, and neither the -a nor the -r option is supplied, the current job is used. If no jobspec is supplied, the -a option means to remove or mark all jobs; the -r option without a job- spec argument restricts operation to running jobs. The return value is 0 unless a jobspec does not specify a valid job.Originally Posted by ktheking
Another option is to use ctrl+z to put the process on hold and then "bg" to send it to the background. If you want to bring it back for some reason just use "fg" - foreground.
1U BareMetal pfsense opnsense Router Firewall DNS Server 6x 10GB Ethernet Ports
$149.00
1U 10 SFF Bay Supermicro Server X10DRW-iT 2x Xeon E5-2690 V4 128GB DDR4 RAM
$399.00
Suse Linux Standard Server 8 OEM PC/DVD - Brand New
$69.99
Dell PowerEdge R210 II Rackmount Server Xeon E31220L 16Gb 1TB + 500GB LINUX 6.6
$129.00
IBM LC922 2x Power9 22-Core 2.6GHz 256Gb 1.4Tb SSD 2U Linux Server - 9006-22C
$1499.95
Custom Server 15" Depth X11SSH-F E3-1270 V6 3.8Ghz 4 Core - 128GB NVME 32GB RAM
$399.00
Linux 23 in 1 Bootable Windows Alternative Collection Live Distro Mint Ubuntu OS
$18.95
Globalscale Technologies DreamPlug AppNeta M22 Linux Server Dual GB Ethernet
$24.99
Australia - Win/Linux Server- 2GB RAM, 1 Core,100 GB HD, Ultd Bandwidth 2 yrs
$200.82
VPS Windows / Linux Server - 12GB RAM, 4 Core, 1 TB HD, Unltd. bandwidth 1 Year
$281.15