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


ADVERTISEMENT

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 View Related

General :: Directory Name With An '&' (ampersand)?

Jun 25, 2011

This dir was created during a download from tthe web. Example: smith&johnson Impossible for me to change to that dir. The shell interprets as the the background indicator. I tried enclosing the name in quotes, but no use.

View 12 Replies View Related

General :: Command Line Way To View A Line Of A File With Context?

Feb 24, 2011

I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:

$ (something) -l 154 stuff.py
150: def foo(bar):
151: """

[code]....

View 5 Replies View Related

General :: Printing Command Line History Without Line Numbers?

Aug 22, 2011

How can I print Linux command line history without including the line numbers? I want to send it all to a text file like this:history >> history.txt

View 1 Replies View Related

Ubuntu :: Auto Logoff Command When Startup App Is Terminated

Dec 17, 2010

I am using Ubuntu as the client machine operating system. I have a start up program to connect to a Windows terminal Server. I am needing assistance in how I can force the client to logoff if the terminal connection is terminated for any reason. This is more of a security issue as we do not want the students using the computer to access the loacl machine at all. The program works great on boot, but it shows the home screen when terminated.

View 1 Replies View Related

Fedora :: Run Python3 Scripts From Command Line And Call Up Python 2.6.2 Idle With The Command Idle From Command Line?

May 29, 2010

i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?

View 5 Replies View Related

General :: Ubuntu 10.10 And Command Line Scripts - Error - Android: Command Not Found

Mar 26, 2011

I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...

I just installed the JDK, SDK, Eclipse successfully (or I assume):

* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).

** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,

My system:

Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2

View 5 Replies View Related

General :: Access The Dbxml From The Command Line And It Returns Command Not Found?

Apr 30, 2011

I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found

path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found

Can someone point me in the right direction

View 1 Replies View Related

General :: Write <Esc> In The Vim Command Line (:vim Command)?

Jun 24, 2011

how do you write the ASCII character #27 in the vim command line?

View 6 Replies View Related

Programming :: URL With Parameters Containg Ampersand?

May 20, 2010

[URL]... The above url is generated by PHP code.

Code:
if($msg=="No capex advice")
echo " .. <a href="upload_capexadvice.php";
if($msg=="No purchase order")
echo " .. <a href="upload_purchaseorder.php";
if($msg=="No invoice")

[Code]...

I pass two parameters in a URL, s and q. I recently ran into the problem that the & in the value(aerial&satelitecity)causes a bit of trouble so I need to replace it. After some research I found that it needs to be replaced by %26. I've tried the standard PHP functions htmlspecialchars and htmlentities, but they translate to & Is there another function that I haven't found yet or must I write my own?

View 2 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

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

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

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

General :: Cannot Log In From Command Line

Apr 1, 2010

trying to install the latest NVIDIA drivers:

I need to disable the X server to install it, which brings me to a blank screen prompting for a login before continuing. it reads thusly:

Ubuntu 9.10 chris-linux

chris-linux login: [i would assume i put in chris here...]

Password:[i type the password i use to login from the normal GUI screen, however i see no indication that im typing anything..]

Login incorrect

View 4 Replies View Related

General :: How To Tell Which OS With Command Line

Jan 21, 2010

Just want to know what OS is, Fedora/RH/... Tried the following on a redhat machine:
uname -o : GNU/Linux
less /proc/version:
Linux version 2.6.18-164.el5 (mockbuild@x86-002.build.bos.redhat.com)
(gcc version 4.1.2 20080704) (Red Hat 4.1.2-46)) #1 SMP Tue Aug 18 15:51:54 EDT 2009
What is the right command to do it?

View 9 Replies View Related

General :: Corresponding Command Line Cmd For The UI Click?

May 21, 2010

I can click the "movie player" from the GUI of Ubuntu, but how could I know the corresponding command line cmd. I want to run the movie player from commmand line. And this is not only about the background command for the movie player, I want to know all the actual command that was run by the x-window shell when I click on one of the icon on the menu.

View 10 Replies View Related

General :: Convert DDS To PNG Using Command Line?

Jul 2, 2010

I need to convert thousands of DDS images to PNG format in Linux, preferably in command line. Is there any program available for such task?

View 1 Replies View Related

General :: Why Cannot Z Be Last Command-Line Option Used With Tar

Nov 17, 2010

$ ls one.tar.gz
one.tar.gz
$ tar -xvfz one.tar.gz
tar: z: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
$ tar -xvzf one.tar.gz
one
$ tar -xzvf one.tar.gz
one
$ tar -zxvf one.tar.gz
one
$

View 2 Replies View Related

General :: Put 'nix Box To Sleep From Command Line?

Dec 23, 2010

What command(s) do I type in the terminal to put the computer to sleep?

View 1 Replies View Related

General :: Booting Into Command Line?

Apr 12, 2010

I installed an older version of gdm and created a new XR1196 directory in /usr/bin and now my computer only boots into command line...

I can get to the GUI using startx, but in doing so I lose all audio output, and the option to shutdown or reboot from both CairoDock and the default panel...

View 16 Replies View Related

General :: Trying To Use Run Level 3 Through Command Line

Mar 30, 2011

I was trying to learn more about xorg configuration and came through an exercise that should be run at run level 3. So, I wrote init 3 in the command line then the x server stopped and the system was trying to enter run level 3 but then it hangs and nothing happens. At that time I was connected to the system via putty and wrote the command init 5 and the x server started again normally. I tried init 3 again and had the same thing.

View 4 Replies View Related

General :: VIM Command To Split A Line Into 2?

Apr 27, 2010

How can I split a line in vim into 2. example :

original line :

welcome to linux questions

after splitting :

welcome to
linux questions

Is there a single key strike through which i can do it ? like going to the word "to" and striking that key will put rest of the words in new line. ( i want to do it in normal mode , not in the usual insert mode where it obviously can be done by typing <Enter> )

View 6 Replies View Related

General :: Can't Launch GUI From Command Line

Feb 22, 2010

I typed in sudo apt-get install ubuntu-desktop and it tells me it's already installed. Good. So it should work. I type sudo/etc/init.d/gdm start and the screen goes blank for 8 seconds three times in a row and then back to the command line. I have also tried gdm start without the path before and it says GDM already running. Aborting! I have 8.10 and it's a valid disk (no errors).

View 14 Replies View Related

General :: Concatenate 2 Command Into One Line

Oct 13, 2010

I'm trying to concatenate two command in one line.

Below are the commands:

Code:

I wanted to list all files in /portal/apll/nad/send and grep only .tmp files that contains credit card word.

View 2 Replies View Related

General :: Start .pps In Command Line?

Jun 16, 2010

i'm using ubuntu with the GUIi have a .pps (power point presentation) on the desktop. I installed the powerpoint viewer and made it the default program for opening the file.when i double click on the file everything works.my problem is i need this on a schedule so i downloaded scheduled task.in scheduled task they ask me the command line i want to execute and that's where it doesn't work. I checked the "allow executing file as program" box on the file but i get the error cannot execute binary file.

View 1 Replies View Related

General :: Ubuntu 10.10 - How To Use Command Line

Oct 18, 2010

I really would like to learn all I can about using the command line. So if anyone knows of a good tutorial please let me know. I am running Ubuntu 10.10.

View 3 Replies View Related







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