General :: Resuming Running Process Like Yes A,vim A,copying Data
Jan 22, 2010resuming the any running process like yes a,vim a,copying data etc) via any terminalkill fg,bg at some instances kill -STOP pid,kill -CONT pid .
View 2 Repliesresuming the any running process like yes a,vim a,copying data etc) via any terminalkill fg,bg at some instances kill -STOP pid,kill -CONT pid .
View 2 RepliesI'm trying to resume copying from a mounted CIFS device to my local hdd with cURL. I tried
Code:
$ curl -C - -O file://myfile
and also
Code:
$ curl -C <manual offset> -O file://myfile
(looked up the manual offset using "$ wc -c")
This resumes copying if I cancel it eg with ^C.
But it does not work if I unmount and remount the CIFS device. cURL then ignores my given offset and continues again from start as if nothing were there without saying a word. With "-C -" the same effect.
There is text based game in the Ubuntu repos called gomoku (just 5 in a row) it comes with the package bsdgames. The manual page [URL] lists an option (-b) to run it in the background. I want to try that and if I know how it works create a simple graphical front-end. When I start the program with:
Code:
gomoku -b
it starts and remains active, the terminal does not return to prompt which is OK as the command is not finished. The manual says the program reads from stdin, and this might sound stupid but how to get anything there?
I've tried to pipe an echo command to gomoku which works but ends the program after is receives input.
Code:
echo "black" | gomoku -b
just finishes. After that when you type another command like:
Code:
echo "justsometext" | gomoku -b
gomoku tells it expects either black or white as input. So it forgot the previous "black" because it is a new instance.
How do I pass text to an already running gomoku?
Is there any windows equivalent tools (like tera copy, Fast copy in windows) for linux for fast copying data from one location to other?
View 1 Replies View RelatedThese forums have been my bible ever since I switched from windows to ubuntu... especially because I was so scared that my laptop was always hot (if you know how to change the temperatures at which HP dv7 laptop fans start kicking the hell in- let me know!). 10.10 has improved this so I'm really really happy with this. Seriously love Ubuntu. Okay, enough for intros.
[Code]....
I want to run this after resuming from suspending. I've been successful in running the script on startup but couldn't do anything about resuming from suspending with these methods [URL] and every other in the forums. By the way, these commands enable Two-Finger Scrolling (doesn't work if you put both your fingers in an horizontal line or vertical).
Is it possible, using ps, to determine where a process is running from? I have two applications, both are identical and running in parallel directories, such as /app1/start.sh and /app2/start.sh. If I run ps -ef then I'm unable to tell the difference between the two
Using ps (or alternative), how can I tell that PID 123 belongs to app1?
Is there a way for me to tell cron to run an app BUT not run it if a process exist already?
View 5 Replies View RelatedIs there some way to see only the process running in the background?
View 4 Replies View RelatedHow can i get the notification of process which are currently running?
We wrote one script which is being fired for every minute, instead of that is there any to trigger the event from linux core implicitly if there is any change in my process(pid)?
Is there any way to run a long process in background so that it still remain in running state even if the user logout the system.
View 12 Replies View RelatedHow do you move a running process to the background? For example, type the command sleep 60 on the command line and try moving that process to the background.
View 1 Replies View RelatedCan we change cpu utilization if its have very high in running mode without stop that process.
View 1 Replies View RelatedIs it possible to rename a process that is currentley running i.e. from "batch.sh" to "donotkill" etc
View 4 Replies View RelatedCan anyone tell me that how to get information about stack, allocated by kernel to a running process? for this ,is there any api function,any system call is available in ubuntu 8.04 ?
View 2 Replies View RelatedIs there a way in zabbix to monitor whether a process is running( up/ down)
i am using zabbix 1.8.4
Possible Duplicate: Finding the process that is using a certain port in Linux I'm using Ubuntu Linux 11.04. How do I write a shell script expression that will find the process running on port 4444 and then kill the process?
View 4 Replies View RelatedHow do I know which shared libraries are loaded by an already running process?
View 2 Replies View RelatedWhen I fork multiple processes, is there some command or c function to see the cpu number on which the processes are running?
View 3 Replies View RelatedI have a game server running using java, and it tends to crash sometimes, and only way to start it now is manually, so i thought i could create a script to check periodically if java is running, and if it isn't, run my startup script for the game server also, if it's possible it should log when it actually started the server startup script into a text file or something, so i can check why it crashed.
View 6 Replies View RelatedIn short our required is that we are creating a share library which can be loaded by a process and that share library analysis the process which load it. Since share library is in address space of the process so I need to find out how many threads created by the process and what is status of their stack trace etc.
So I am looking for a way to get list of threads in running process.
I'd like to start a background job using the sudo command and route its output to a file. This presents a problem because the prompt for the password doesn't work properly. It looks something like this when I try it:
Code:
Mac:server user$ sudo php crossdomain_server.php > data/crosscomain_output.txt &
[3] 30303
Mac:server user$ Password:
[3]+ Stopped sudo php crossdomain_server.php > data/crosscomain_output.txt
Mac:server user$
Basically I'm not properly prompted for the password and as soon as I type anything in my background job fails because it didn't receive the password. Is there any way to execute a sudo command by supplying the password on the same line as the command?
I am trying to set the umask for a process(orkaudio) which is running as the root user.This program creates dir and files and I need the umask to be 022. I have edited my /etc/bashrc -- and when i type in umask i get 0022 --- Not sure how to go about getting this resolved...
View 1 Replies View RelatedI have Western Digital 1 TB external HDD. I had slackware 13 and it could copy data to it with speed around 30 MB/s (copy from machine to HDD) and it was cool. It's usb 2.0 as KInfoCenter says. But now in fedora 13, it's like 1 MB/s or even less (KInfoCenter still says usb 2.0). Any special mount option to set in fuseblk to speed it up? I mean something like blksize or like that?
Code:
/dev/sdc1 on /media/My Book type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
Sometimes I connect to my Debian box from another computer (using SSH on Cygwin or Linux), and once ina while I want to run some console apps. And sometimes some of these apps might complain about "another intance, Error: an instance of newsbeuter is already running (PID: 2496)". Is there a work around for this issue at all(without killing the original instance") ? The reason I do not want to kill the app because there might be 2 users connected to the same machine that might be using the same app.
View 1 Replies View RelatedI have already tried trickle and wondershaper. I need a program that can limit the speed of download/upload of an already running program. Similar to the how NetLimiter in Windows limits already running processes. Using Linux.
View 1 Replies View RelatedI wonder how one can, if at all, run an X program in the background *in an emulator sub-shell process*. What I mean is to launch a program in an emulator, e.g, by xterm -e gedit
but with gedit (in this example) running in the background from inside the xterm sub-process, so that the xterm will accept other commands. In the above, gedit will run in the foreground, and of course, if you do
xterm -e gedit &
then xterm will run in the background, not gedit.In short, I would like to achieve the same thing as "gedit &" as you manually do in xterm, but from another shell. What I aim to do is write an X init script to achieve this result (to have the emulator open and a program or two running from it, in the background, at the X startup).
Unix command that allows to know which process is running on processor core?
View 2 Replies View RelatedI am using Sphinx search on my webserver and it quits after a certain amount of time leaving my search page broken.Here is a bash script that I want to run every 10mins via cron:
Code:
#!/bin/bash
if pgrep searchd | grep "[0-9]"
[code]...
Is there any command to find out for how many Milli seconds a process is been running?s -a -o pid,etime | grep "process pid" gives the time in min:seconds. I wanted in milliseconds .
View 10 Replies View RelatedI have cronjob that uses rsync to back up to a remote directory every hour. how do I set this rsync up so that if initial process is running already, it prevents running same rsync command and checks again in next hour until the process is finished/terminated?
View 5 Replies View Related