Programming :: Use Fg Foreground Command?

Apr 16, 2010

I have many processes running that printf local debug. (they will log to file later!) I start them by

Code:
( sleep 20000000 | fp ) & else they get killed/stop by themselves. So now its running in the background, I want to bring it to the front to see the printfs.

[Code]....

View 14 Replies


ADVERTISEMENT

General :: Command Line Terminated By Ampersand - Put It In The Foreground?

Jun 14, 2011

I know a program running in the background can be brought to the foreground by typing 'fg'. So, if

command_line &

really runs the program in the background, my question has just been answered. But then all reduces to this question (yeah, I know; but I'm asking in earnest): does the ampersand sign make the program run in the background?

View 3 Replies View Related

Programming :: Printf() In C Being Able To Specify Foreground / Background Colors?

Nov 21, 2010

I got curious during the construction of my program to search for blocks of text that contain certain words, and wanted to print out blocks of text with the words I was searching for, initially, in ALL CAPS and seperated by tabs for easy identification. That got boring, though, so I thought, "Can printf do colors, too?" Yes it can.... Who knew?

[Code],,,

View 8 Replies View Related

Ubuntu :: Window In Foreground Is White?

May 13, 2011

Sometimes when I have two or more windows open, the window in the foreground will be white, or blank. This most notably happens when I have Firefox and LibreOffice open in the same desktop. The window in the background is clearly visible, and when I right click on the window in the foreground, a normal context menu comes up. This also sometimes happens when there is only one window on a desktop.

I have played on and off with ubuntu over the years, and am currently using 11.04 on an older HP with an Athlon 64 chip. You may consider my background knowledge of the system to be one step above nil. I'm happy to provide any system info you may want, but you'll likely have to tell me how to obtain it.

View 6 Replies View Related

General :: Possible To Schedule Process In Foreground?

Dec 7, 2010

Is it possible to schedule a process in the foreground? Lets say a cron schedule to be ran at 9:00. I would like to come back at 9:30, see how the process is running, and being able to interact with it... lets say kill it, or whatever. Is it possible? (Its not necessary to use cron, but it must be in Command Line)

View 6 Replies View Related

Fedora :: Possible To Set Background/foreground Opacity Seperately?

Dec 30, 2009

I want to set my top gnome-panel's background opacity to about 80, while having foreground opacity (fonts and images) set to 100.

View 1 Replies View Related

Fedora :: Open A Java Program In Foreground

May 25, 2010

I have a java program with gui. I want to start this program in the start of system (rc3.d) and when I connect to the machine bring to front without open another time the program. I want to connect to opened program in the start of system.

View 1 Replies View Related

General :: How To Bring Process Back To Foreground

Feb 9, 2010

I start a process, put it in the background running, then log out, then log in again, and want to bring the process to front again. I've looked in "ps aux" for the PID, but it won't be put in the foreground with "fg ###". What's the correct way? (I use the same account for both login sessions.)

View 2 Replies View Related

Ubuntu Multimedia :: No Foreground Sounds Playing MP4's

Jan 13, 2010

when I play an MP4 movie everything is great except all I hear is the background sounds in the movie..and non of the foreground (ie the actors speaking)...I have uninstalled pulse audio in the past and use alsamixer for any sound configs.

View 4 Replies View Related

Ubuntu :: Stop Programs From Coming To Foreground

May 27, 2011

I am running some Matlab simulations on Natty Narwhal. Each time this matlab script outputs a figure, Matlab jumps to the foreground, as if I clicked it on the launcher. This is really annoying, because if I'm typing something in my browser for example, and a figure is displayed, I am taken away from my browser and I have to click the browser to resume typing.Is there a way to just have Matlab run in the background without interfering my other work?

View 2 Replies View Related

General :: Process In Background Hogs 96% CPU But When Ran In Foreground Its Almost Zero

May 17, 2010

I am trying to solve one problem: When i run my process in background it hogs around 96% of CPU. But when ran in foreground, CPU utilization is almost zero. Is there any difference b/n a background and a foreground process wrto CPU utilization?

View 8 Replies View Related

Server :: Move Background Process To Foreground?

Mar 5, 2010

is it possible in bash to run one command in background and after it's done show output with less? While background process is running I should be able enter another commands.What I have is this (sleep is only for simulation):

Code:
{({ ( tree / > tree.txt && sleep 2) & } && wait && less tree.txt) &} && wait fg &
Problem is that I don't know and I can't find how to move it to the foreground after completion.

View 14 Replies View Related

General :: Change The Foreground Color Of Statusbars In Irssi?

Apr 27, 2010

I've changed the terminal colors and now irssi statusbars have white text on light blue background. I would like to change the foreground color of the irssi statusbars to black but can't figure out how to do it. I don't want to download a whole theme, I only want to change this one color.

View 1 Replies View Related

General :: Deal With Job That Stop And Cannot Continue Unless Made Foreground?

May 23, 2010

Recent example: mountlo (using UML):

vi@vi-notebook:~/b$ mountlo -m 16 -d /dev/uba1 /home/vi/mnt/usb -t vfat -o iocharset=utf8,allow_other&
[1] 32561
vi@vi-notebook:~/b$ Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
Checking PROT_EXEC mmap in /tmp...OK

[Code]...

Also happens with Gimp (when it does run it's plug-ins). Parts of Gimp started by `gimp q.jpg&' freeze and cannot continue unless "killall -CONT" or made foreground. Is it a bug? How to reliably start things in a background?

View 1 Replies View Related

General :: Bring Back A Disowned Process To Foreground?

Jun 16, 2010

I had started a process through ssh and then i did 'cntrl+Z' and 'bg' and 'disown' before closing the ssh connection. That process kept running in the background in the other machine and now i want to bring it back to foreground in that machine. However running the command 'fg %<process_id>' is not helping. What do i DO!?

View 6 Replies View Related

Ubuntu :: Place A Process In The Background, Bring To Foreground?

May 18, 2011

q)how can i bring the backgroud process to foreground i tried like below1]hp-linux@hp-linux-desktop:/usr/share$ top

top - 11:28:24 up 1:57, 2 users, load average: 0.55, 0.65, 0.62
Tasks: 158 total, 3 running, 155 sleeping, 0 stopped, 0 zombie
Cpu(s): 6.1%us, 2.9%sy, 0.7%ni, 87.1%id, 3.0%wa, 0.2%hi, 0.1%si, 0.0%st

[code]...

View 4 Replies View Related

Programming :: Effect Of Using Eval To Execute A Command As Opposed To Writing It On The Command-line?

Jun 18, 2010

Code: cmd='date | wc'

$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?

View 4 Replies View Related

Ubuntu Multimedia :: Video Window Sticks To Foreground While Playing

Jun 14, 2011

Whenever I'm playing a video and bring another application to the foreground, the video window appears over the foreground application:

I'm running Natty Narwhal 64-bit. This didn't happen back in Maverick. The hardware is an Asus K42JR laptop. If there's any more detailed information that I can provide to help narrow this problem down, please let me know.

I've found a similar issue on the forums, but it seems a bit different. This guy also has foreground window problems, but in his case they occur with non-video applications and are not consistent (it only happens 10% of the time).

With me, it always occurs with only video playback. The choice of video application for playback does not appear to matter (I've tried Totem, VLC). Strangely, the problem doesn't occur when viewing flash videos from within Chrome.

View 5 Replies View Related

Software :: Can't Set Xterm Background/foreground Colors Properly Using Slackware?

Aug 19, 2009

I've read about this. Everyone says to use ~/.Xresources or ~/.Xdefaults, and it doesn't work for me. It doesn't do anything at all, in fact. I'm trying to use this:

Code:

XTerm*background: black
XTerm*foreground: white

In the ~/.X* files, it won't work. I read that another way of doing it is using

Code:

xrdb -merge .x_settings_file

This will work for me. It's the only thing I can get to work. But when I restart, it will have to be done again. I'm using Slackware 12.2.

View 1 Replies View Related

Programming :: Command Line Invocation Of Gnome-terminal To Run More Than One Command?

Feb 16, 2010

I am trying to learn how to pass more than a one-command startup for gnome-terminal.

I will give an example of what I'm trying to do here:

Code:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
${0##*/} [-x] [-g]
code....

However, running with the -g option to invoke gnome-terminal, I get a "There was an error creating the child process for this terminal" error.

This same error occurs if the gnome-terminal line is changed to

Code:
gnome-terminal -e mcTerm

Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.

View 4 Replies View Related

Programming :: System Command / 'mcc' Is Not A Recognised As An Internal Or External Command?

Apr 13, 2010

I am writing a perl script which uses the matlab compiler to compile a .m file.

I am using the system("mcc �m file.m"). I have matlab installed and both script and exe are in the same drive.But i get the following error .

'mcc' is not a recognised as an internal or external command ,operable in program or batch file.

View 5 Replies View Related

Programming :: Show The Output Of Shell Command Into A Textbox, Ex Ps -efc Command?

Oct 20, 2010

I am using gtk to program GUI. How can I show the output of shell command into a textbox, ex ps -efc command ?

View 3 Replies View Related

Programming :: Convert This Awk Command From Command Line Into An Awk Script ?

Oct 15, 2010

I'm trying to convert this awk command from command line into an awk script, but just cannot get it to work:

This is what i have after my BEGIN

Am i missing something here? this just prints out the count for everyline, not counting lines on 5th field that match 'A'

View 1 Replies View Related

Programming :: Calling Command From History Using Variable Like !$command?

Nov 19, 2008

suppose i store the history number of a command say :

1004 cat file

Then now i want to run it like : !1004 but by using a variable.

command=1004
!$command

i am getting errors like :

command=1004command

View 2 Replies View Related

Programming :: Bash Ambiguous Redirect - Redirect One Command Output Which Will Be Treat As A Content Of File For Another Command?

Mar 9, 2011

I am trying to grep multiple numbers from file, grep does have the -f option for that.

Code: grep -f <`seq 500 520` /etc/passwd I know this could be done with

Code: for i in `seq 500 520`; do grep "$i" /etc/passwd; done But my question is fare more behind this example. It is possible to redirect one command output which will be treat as a content of file for another command ?

View 2 Replies View Related

Ubuntu :: ALT+MiddleClick (resize Window) Doesn't Grab Foreground (top) Window

Jan 16, 2011

If you don't know, users are able to quickly resize windows using the "ALT+MiddleClick" key shortcut/combo. Basically, hold the ALT key, and mouse middle click and hold on a window. Move the mouse around, and it will resize the window for you.

STEPS TO REPRODUCE:

1) Open a single Window.

2) Near the bottom-right-hand corner of the window, ALT+MiddleClick and drag. It should resize. Great. It works.

What Doesn't Work:

Now, the problem arises when you have multiple windows open on the desktop, they are "layered". i.e. you might have several windows open "behind" the one currently "up front". Example:

If I try to ALT+MiddleClick the "foreground window", it rarely actually resizes THAT window, and instead jumps one of the windows from behind to the front, and resizes that one instead!

STEPS TO REPRODUCE:

1) Open 3x gnome-terminal windows and say some nautilus window. Place them overtop one another. (like the above image)

2) Try to ALT+MiddleClick the foreground window.

3) Repeat this always trying to grab the foreground window.

For me, the window manager seems to bring some window from the background to the front! Desktop Recording of the Problem: [URL]

Running:

* Ubuntu 10.10
* compiz window manager (the problem does not occur with metacity)
* ATI Radeon RV770 (HD4870) w/ open source Radeon Driver (same problem w/ fglrx driver)
* Versions: [URL]

View 3 Replies View Related

Ubuntu :: Drag File/Folder To Taskbar Button Creates Launcher, Not Bring Folder To Foreground?

May 20, 2011

After upgrading to 11.04, I noticed something strange, being that when I want to drag a file or folder from one Nautilus folder window to another which is not visible, I can no longer hold the item over said folder's taskbar button and wait for it to appear. It just shows the + for copy, and when I let go (which I have no choice but to eventually do), it creates a launcher to that item (I assume it's doing that, and not actually copying there, but the + has me unsure).

I've looked in Nautilus's preferences to see if this is some new behaviour that I can revert back to, but could find nothing there.

I'm of course using the Classic desktop with bottom panel being the taskbar. If you know how I can rectify this, please let me know, as the times I would want to create a file or folder launcher without the usual hassle would be rare, but I am constantly dragging stuff from one folder to another, and it would be a real pain to have to line up source and destination folders each time.

View 4 Replies View Related

Programming :: Command To Run Another One On Few Lines

Jul 23, 2010

Is there a command which can be used to run some other command on a few lines from a file or an o/p of some file. (the kind of role that -exec option does for the find command). (I have solved the purpose using a bash loop but would like to know if there exists a command).

View 4 Replies View Related

Programming :: Cp Command -f Is Not HAPPENING?

Mar 20, 2011

What's the deal with this bloody commandI trying to do an update of a product.The -f is suppose to "force" the overwrite of existing files isn't it?Well every time I run the command it keeps asking me to allow it to overwrite the files.. the programs is too long for me to sit here hitting the "y" and "enter key"

View 2 Replies View Related

Programming :: Use The Seq Command But Can't Get It To Work?

Mar 24, 2011

I have a script that will build a list of hosts and it works fine Code: for ((i=$START; i<=$END; i++)); do echo "$NAME$i"; done But I need it to build the START and END on different number formats (i.e. 1 -> 10, 01->10, 001 ->010)

I am trying to use the seq command but can't get it to work quite right with the -w flag in the following Code: for ((myseq=$START; myseq<=$END; myseq ++)) do echo "$NAME${myseq}" done I am fully aware that this syntax is probably wrong, and need to know how to correct it.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved