General :: Running Shell Program On Startup As Root In Terminal

Aug 4, 2010

I am running Linux Mint 9..I play xbox live and run it through my laptops wireless network connection so i dont have to pay 100 dollars for the usb wireless adapter for the xbox. In windows 7 this is easy to configure so that when i turn my laptop on and then xbox it automatically connects.

View 10 Replies


ADVERTISEMENT

General :: Running A Program On Startup?

Aug 9, 2011

I have a program I have made, and I would like it to run as soon as the system is finished booting. I am using Ubuntu Mini Remix to recreate a LiveCD/USB stick. After booting, it drops me to a command line where I can enter "sudo qct" and it will run my program (which is called qct, and it has to be run as root).I want this to be automated.Instead of going to a command line, I want it to run the program itself at that point. How would I go about doing this? I have read many tutorials about scripting but I cannot seem to get it to work.

View 11 Replies View Related

General :: Running My Shell Scripts As Root ?

Aug 18, 2010

I have been playing around with shell scripting, nothing too complex just learning the basics. if i try to run a script as root (by entering "sudo" then the "command") it says command not found. i can only do it ass root if i specify the full path (/home/username/bin/command) im pretty sure the directory that my scripts are in are part of the superusers path.

View 14 Replies View Related

General :: Running A Script At Startup As Root?

Apr 14, 2010

Is there a way I can run 'completely' one of my script when ubuntu's desktop appears no matter if root , administrator, desktop user or an unprivileged user logged in?

What does the script do? The script mounts a partition, looks for a file in that partition and finally on the basis of that file a decision of copying a partition to another partition is made. That copying is done via

[Code]...

View 5 Replies View Related

General :: Tell If A C Program Is Running Without A Terminal?

May 9, 2010

I have a C program that can run disconnected ( like most ), is there a programmatical way to tel if the program is running without a terminal? Example:nohup my-program &What I want is to modify the program so it can be used as a HUB interface. It does Peer to Peer communication and I want to make it a server function with a command line option.Currently if I disconnect the program, it will loop on the read for stdin, I need to be able to detect that and go into 'HUB' mode.

View 4 Replies View Related

General :: Measuring Time That A Program Is Running In Shell Script

Nov 11, 2010

I have a script that executed 100000 C Programs, reads the commands from a file and executes them. There is a requirement to measuer the time that each of this 100K C programs running.If it exceeds 120 sec I want to Kill that Process.Any Idea to embed this in my shell script?

View 4 Replies View Related

General :: Continue Running A Program Inspite Of Killing The Shell Which Invoked It?

May 31, 2011

Possible Duplicate: Leave bash script running on remote terminal while not logged in? I run a program, say ./a.out 10 from the shell prompt. Assume that there's a while(1) inside the program being run. Now if I try to close the shell, it warns me that it'll kill my running program too! So, how to kill the shell and still let my program continue running in the background?

I tried exec ./a.out 10 but the shell is still there. Another alternative is to simply double click my executable but then how will I pass command line parameters?

View 2 Replies View Related

General :: Location Of A Program Running In Terminal - Launched From Panel?

Dec 17, 2010

I am using DreamLinux. I have pinned a program, that runs in terminal, to the launcher in the panel on desktop. The program's executable file (name: feap) is located in /home/User/feap2.2 After I added the launcher to the panel that runs the file in terminal, the program asks for the input file (text file with alot of commands) when run. By default the program accepts the files that are located in the same directory i.e. /feap2.2 , so I placed the input file in the same directory.

However when I run the program from the panel, and give the input file name, it says no such file exists. Then I gave the file name with full path, but problem was not solved. I have tried alot e.g. placed the input file at other locations, but all in vain. I have set all input file permissions to be accessible by User as well. I will be much relieved if someone suggests where to place the input file for the such program running in the terminal launched from panels?

P.S: If I open terminal, go to the directory (/home/User/feap2.2), run the program's exe file, and then give the file name, it accepts the input file and it give results.

View 1 Replies View Related

Ubuntu :: Running Shell Script From Terminal?

Feb 14, 2011

I have a shell script that I want to be able to run from the terminal just by typing "topcat", regardless of where I am or what user I'm under. How would I go about changing the bash configuration files (if I have to) in order for that to work, for me and for the other users on the computer (I have root access)? As it stands right now, I have to type "/bin/topcat/./topcat" in order for it to execute

View 3 Replies View Related

Programming :: Running A Program With Arguments Using A Shell Script

Jul 14, 2011

Running a program with arguments using a shell script

View 1 Replies View Related

Ubuntu Servers :: Running Script As Root On Startup?

Jul 29, 2010

I am trying to run my script at startup but it doesn't run the script as root. Do I need to add my root username and password in the script, or somewhere else?

View 1 Replies View Related

Red Hat / Fedora :: Running A Script As Root On System Startup?

Apr 29, 2009

There is a script that I want to run as root when the machine boots up(which starts the Redhat Certificate System services). The problem I have is if I put this on rc.local it wont run because I havent logged in as root. Is there a way that I can run this without logging in as root at the machine startup?

View 5 Replies View Related

Ubuntu :: Set Terminal To Completely Hide Itself While It's Running A Program?

Jan 19, 2009

It really bothers me that when I start a program through the terminal it takes up space with the terminal that's tied up with the program, and the program itself. I know how to keep it from tying up the terminal, but when it devotes the terminal, I like that it gives output if the program crashes. Is there a way I can set a terminal to completely hide itself (off the desktop and the taskbar) while it's running a program, then reappear once the program is closed?

View 4 Replies View Related

Ubuntu :: Display Title Of Running Program When Using Gnome-terminal?

Feb 12, 2011

Usually I open 5 terminals. And since each of those 5 terminals prints it's tile as: "username@username-laptop: ~" It becomes very hard to see what is what. So, I would like my terminal to always change it's title automatically to the program that I am currently using.
So, if I type "irssi", the title of my gnome-terminal-window, should change to: "irssi" for example.

View 2 Replies View Related

Debian :: Running Dropbox And GUFW From Root Terminal

Jan 7, 2016

I'm brand new to Linux and perhaps foolishly jumped right into Debian (Jessie). I've managed to get Dropbox downloaded/installed/whatever the proper parlance is, but in order to access it I have to input Code: Select all~/.dropbox-dist/dropboxd. When I close the root terminal, Dropbox disappears.There's no icons in the menu. Likewise with GUFW. It might be superfluous since UFW seems to be active whenever I check it through the root terminal. Is there any way to configure Dropbox to start automatically and maintain its status even if the root terminal is closed? I've looked around these forums and the internet in general and not found any similar problems. Also, I installed Spotify but whenever I click the icon nothing happens.

View 8 Replies View Related

OpenSUSE :: Running A Program In Kickoff Application Launcher As Root

Jun 16, 2010

I am using openSUSE 11.2, and i want to use configure a scanner app to install drivers for my scanner but it requires root previlages to do so.So Please Can Anyone tell me how can i run configure a scanner as root from the kick off application launcher.

View 3 Replies View Related

Fedora :: Root Login Works At Shell - Auth Error When Running Admin Tools

Jan 25, 2011

I login as normal user. I can 'su root' fine - password authenticates. However, If I try to run System->Administration->Users/Groups, when it asks for root password, it is rejected. When I run updater, it reports failure to authenticate, but doesn't even ask for root password beforehand. Is there a cached password someplace?

View 7 Replies View Related

General :: Why Does Running A Program In Bash Work, When Running It In The Menu Doesn't?

Jul 26, 2010

I presume there is something in the JWM window manager - or Puppy Linux Lupu 5.01 itself that is conflicting with the normal loading of GMPLAYER....

I would like to know how to troubleshoot, and fix this problem if possible (even a workaround would be great).

View 1 Replies View Related

Ubuntu :: "No Such File Or Directory" Reported On Running Program From Terminal

Jan 14, 2011

When I try to run a program from the terminal, bash reports "No such file or directory", even though the file exists, is executable and I have permission to run it. The same program worked in the past.

View 7 Replies View Related

General :: Execute A Shell Script On Startup?

Mar 31, 2010

I have create a script to start a server(my first question). Now I want it to run on the system boot and start the defined server. What should I do to get this done? My findings tell me put this file in /etc/init.d location and it will execute when the system will boot. But I am not able to understand how the first argument on the startup will be start? Is this predefined somewhere to use start as $1? If I want to have a case startall that will start all the servers in the script, then what are the options I can manage.

My Script is like this:

#!/bin/bash
case "$1" in
start)
start

[code]....

View 2 Replies View Related

General :: How To Run Program As User With No Shell

May 27, 2010

I have a program I want to run as it's own user. But I don't want anyone to be able to login as that user, so I created a user like: -

useradd -s /sbin/nologin someuser

How do I run a specific program owned by this user as this user? I can't su to this user as it doesn't have a shell.

View 15 Replies View Related

General :: Use Bash Shell When I Run A Program From It?

May 11, 2011

So I open firefox from my bash shell with:

Code:
firefox google.ca
it opens firefox, I can browse, etc.
Now if I alt-tab back into my shell, i can't enter any commands in the shell.

I know that i can do this if I close firefox, but I want to keep working in my shell with firefox still open.

Is this possible?

View 6 Replies View Related

General :: Startup A Program Automatically?

Feb 18, 2011

I need to startup a program automatically. What to do? I using kubuntu. In Windows, you go to the startup folder under program files(I think.)

View 1 Replies View Related

General :: Unable To Add Program To Startup

Jun 21, 2011

Made a little c-program i want to start at boot and found out that i can do that through the rc.local script that runs once every time the computer boots. Say that i have a program called test in /home/user/Documents... what do i write rc.local?

View 10 Replies View Related

General :: Terminal / Shell Colours To Use?

Aug 24, 2010

Green on black = general shell
red on black = shelling in as root to a server
gold on black = media, irc

what colours do you use?

View 2 Replies View Related

General :: Can't Set Terminal To Regular Shell?

Jan 14, 2011

i am running slackware and i cant set my terminal to regular shell. when i open up a terminal i see something like bash4.1 instead of hostname and nickname how can i change this. i use more than one terminal so id liek to make this change for all terminals

View 5 Replies View Related

General :: Secure Shell/terminal For Ubuntu?

Jul 22, 2010

There are a couple commands I want to run in a terminal that require me to provide my password. I really don't want those commands ending up in any kind of history or anywhere else where they could be seen by someone after the command was run. Are there any shells/terminals for Ubuntu that I could use (or options to bash/zsh/etc) that would give me a secure environment where I don't have to worry about my history being kept?

View 3 Replies View Related

General :: Differences Between Shell , Console & Terminal?

Jan 9, 2011

What are the differences between shell , console & terminal?

This probably sounds like a stupid question but I'm having a lot of trouble clearly differentiating between a shell (such as Bourne or bash) and the Terminal application in GNOME. I realise that both are completely different but I can't seem to find a clear answer written in text. Could anyone clearly distinguish between both?

View 4 Replies View Related

General :: Disable Color In Shell / Terminal

Apr 6, 2011

I want to disable all color in my shell. Not ls, not nano, not vi, nothing.

View 3 Replies View Related

General :: What Are The Differences Between Shell , Console & Terminal

Jul 23, 2011

I have come across the use of the term terminal, virtual terminals/consoles, real-text terminals but do not understand what terminal refers to. Does it refer to the screen that is in-front of me whilst I post this question or does it refer to something specific?EDITI came across a similar post at What are the differences between shell , console & terminal? and it seems to be similar to the one I posted although am still confused about the use of the sentence Decades ago, this was a physical device consisting of little more than a monitor and keyboard. What does this device look like and how is different to a monitor?

View 2 Replies View Related







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