Ubuntu :: Difference: Run Program From Rc2.d Or From Root Command Line?

Mar 26, 2010

Example: In rc2.d I have S99test. In it: Code: #!/bin/sh mplayer -playlist "/music/Thom Yorke - The Eraser" Reboot; hear the loveliness; press pause (lirc setup)...still loveliness.

Login as root; "pkill mplay";hear nothing; "/etc/rc2.d/S99test"; more loveliness; press pause...silence! I know that i the former case, mplayer is assigned (for lack of a proper term) to a session, e.g. tty1. Not so in the latter. But why should a program like mplayer not receive (or ignore?) input from lircd, simply because it doesn't have a session? And how can I get mplayer (or any program run from boot scripts) to work with other programs (like lircd)?

View 1 Replies


ADVERTISEMENT

General :: Difference Between Cron And Command Line Environment?

Feb 18, 2010

so i have a few shell scripts that execute wonderfully when i type them at the command line but they fail when they are run from cron.

for example, if i run a script from command line that contains

Code:
shopt -s nullglob

to prevent problems with for f in *.mp4 type loops, it works fine from terminal command line but when called from cron, it gives an error->

Code:
/home/centralsqwall/Videos/videochecker.sh: 91: shopt: not found

a couple other random errors as well...

so there is some difference in the shell from cron and the terminal?

i'm running ubuntu 9.10, #!/bin/bash

what are the commands i should be using to echo my environment or simulate cron environment from the terminal?

View 3 Replies View Related

OpenSUSE Install :: Any Substancial Difference Between Gnome Terminal Or Hitting 'c' To Bring Up Command Line

Feb 25, 2010

so the safest way to go about this is to assume I know nothing. I mean, I have a rough Idea of what a kernel is, no idea what a shell is, etc. I do consider myself computer savvy, but know NOTHING about linux and thats why I'm Diving in, hopefully not too much, this is just to give you an idea of what we're working with here.

After several install attempts I kept getting a blank screen. Whether it be black,white, or the default gnome desktop (without any icons, and simple things like ctrl+alt+backspace just doesn't work, or anything else for that matter) I was ending up with a blank screen. Driver for moniter....maybe....but I did succesfully install it once, and it worked like a charm...shutdown properly, and the next day after work...Boom, same thing after startup.today I started from scratch and re-installed....samething, until I hit the power button, went from the dvd(iso) and did a fail safe, now my resolution is much better than it was the first time..Actual questions.....what did I do to fix it when failsafe never worked before?

Is there a way to save these settings, so I don't run into the problem again, because I don't even want to turn of my computer at this point?If i'm trying to dive in and learn the command line actions, is there any substancial difference between gnome terminal or hitting "c" to bring up the command line?

View 9 Replies View Related

Ubuntu :: Box To Run A Command Line Program?

Sep 19, 2010

I have just installed pdfocr. Unfortunately it does not have a gui and so in time I will forget how to use it or not remember I have it.

Is there a simple generic program that will browse to where the file is and then run the command line? I suspect python will do it. Could someone point me to a suitable tutorial for this purpose.code...

View 2 Replies View Related

Ubuntu :: What Command Line Program Should Be Used

Jul 6, 2011

I am going to do a web based search for several thousand webpages which may or may not exist. I just want a list of the addresses which work. I dont want to load into firefox, and I'd preffer not to ping the url. I just want to test the URLs for validity and kick back a list of good URLs.
Any Ideas on a simple program to do this, which I can use in a bash script?

View 2 Replies View Related

Ubuntu :: Adding A Line To Sudoers File So That Every User Can Run A Particular Program As Root?

Mar 27, 2010

is it possible to do so? I mean, I want every user to be able to run '/bin/x' for example, as root without entering a password. I know the security risks, but I'm trying this in a risk-free environment which security does not matter very much.

View 2 Replies View Related

Ubuntu :: How To Run A Python Program From The Command Line

Jun 14, 2011

i have ubuntu 10.04 and python 2.6 installed how do i run, stop or restart a .py file from the command line.

btw im using Putty from a windows computer

View 1 Replies View Related

General :: See All Installed Program In Ubuntu From Command Line?

Jun 16, 2010

How can I see all my installed program in Ubuntu from command line?

View 2 Replies View Related

Debian :: Install A Program Using The Command Line?

Jan 29, 2011

I tried to install Vlc using the terminal (terminal as root). I've used the command aptitude install vlc. Instead of installing only vlc, my gnome desktop environment was removed, gdm was removed, many more programs was removed! What's the command for installing just a single program using the command line? I was used under Ubuntu to use the command sudo apt-get install [***]

View 14 Replies View Related

Fedora :: Using Built In Command Line FTP Program?

May 13, 2010

Any relatively easy user guide for the built in command line ftp program?

View 10 Replies View Related

SUSE :: Unable To Get A Program To Run From The Command Line?

Nov 9, 2010

I have reinstalled Suse 10.1 as dual-boot with Windows XP. I am now unable to get a program to run from the Linux command line. I am familiar with the program and have had it running previously when the machine was Linux-only. Everything else, e.g.Firefox and Office, work fine in Suse.

[Code]...

The problem occurs with all commands - not just this one. isis3Startup.sh is in green on the screen so I assume I should be able to run it - I have never had any problem when it was installed previously.

View 2 Replies View Related

Software :: Command Line Program For IP Calculation?

Apr 8, 2011

ipcalc isn't the one I am thinking of. I remember another one that was a bit better, with more options -- easier to use.I remember that if you gave it a CIDR network /23 and an IP, it would list all of the address ranges, network, broadcast for that network..

View 2 Replies View Related

Programming :: Program That Activates A Command-line?

Feb 7, 2010

I am wanting to write a program that runs a program or command-line. Is there are way of making a program that activates a command-line (for example executing 'ps -a -f' or '/home/shared/fah').

In addition to that, I want the program to do a 'ps -a -f' and put the results in a buff, how could I do this.

View 5 Replies View Related

General :: Ubuntu - Command-line Program That Switches Consoles?

Jun 18, 2011

For whatever reason, the "Ctrl-Alt-Fn" sequence has no effect on one of my Ubuntu machines; the sequence is interpreted as ordinary input. I need to get the system to a console because I'm trying to do a dist-upgrade and that's going to bounce gdm etc.

Is there some command-line tool that can be used to switch consoles? I have some vague distant memory of that being possible.

(I'm running Ubunty Jaunty at the moment. Yes I know it's old; I'm trying to march forward.)

View 2 Replies View Related

Ubuntu :: How To Create A Shortcut To Open Command Line Program

Feb 21, 2010

I use a few command line programs quite often such as nano and mpc. I'd like to create a shortcut icon to open them rather than opening a terminal and then typing in the program name to open it. For example, how could i open konsole with nano opened in one step?

View 5 Replies View Related

Debian :: Any Program To Send Mail From Command Line?

Sep 9, 2010

Is there an easy to use program that I can use to send mail from the command line? I want to be able to create a batch script to send mail from different text files. What I'm looking for is something like:
mailapp mailserveraddress destinationmailaddress mymailaddress filetosend

View 11 Replies View Related

Programming :: Using Command-line Options With A Program That's Called Using Env

Oct 11, 2010

I thought about this a while ago when reading through a Python tutorial and I googled some and couldn't find an answer. Now I want to know it for Ruby, also, and it's more important now because I want to invoke Ruby with -w.

How can you use:

Code:

with a -w option to ruby, like:

Code:

This doesn't work and I can't find an explanation of how to do it.

Code:

View 1 Replies View Related

Ubuntu :: What The Diffent - Root User And Susdo In Command Line

Jan 4, 2010

Why we have to log in as root user some times while we can use sudo in command line ,is it diffrent , does sudo dont have all access and all permessions? i am really lost , i know little of alot of things in ubuntu ,but still missong alot of circles to make the complate picture.

View 8 Replies View Related

Software :: Program To Hibernate The Computer For A Set Time (from Command Line)?

May 9, 2011

Is there a program I can install and run from the Command Line that will hibernate the computer (pausing all running programs (like my Minecraft server)), cutting power usage TO A BARE MINIMUM, and the un-hibernate after a set time? The laptop this will be used on is SliTaz linux with the GUI disabled (unless i run startx)

View 3 Replies View Related

General :: Delete Mail Root In Command Line

Jul 1, 2010

I want to delete all may mail root in command line and i don't find this... the command mail + "d" work fine but i want use it in a .sh

I explain too : I use fetchmail to have mail from a gmail box, and use RIPMIME to save the attachment in a folder... these work fine, but the i want delete these mails.

View 3 Replies View Related

Ubuntu Servers :: Command Line To Copy File To Root Directory

May 12, 2010

I want to copy file from the Server cd drive and USB drive to the server root directory, but I haven't find any command of listing the cd drive or usb drive.

View 4 Replies View Related

Debian Multimedia :: Finding A RSS Program That Can Run On The Desktop Command Line Style

Jun 8, 2010

I am looking for a good RSS program that can run on the desktop command line style.

View 3 Replies View Related

General :: High Level Command Line Program For Burning CDs And DVDs?

Mar 12, 2010

I'm sick of screwing around trying to script a clean solution to burn multiple files and folders to CDs and DVDs with wodim, growisofs and genisoimage.I'm looking for a high level command line program that uses sensible defaults and takes arguments something like this:[program-name] [cd|dvd] /path/to/dir1/ /path/to/dir2/ /path/to/file ...It should then do all the low level copying and ISO generation transparently and just burn the damn disk!Does anyone have any suggestions? I've looked at several programs but it seems there are too many choices to trawl through and not enough information about them online.

View 4 Replies View Related

General :: How To Program The Command Line To Run A Piece Of Code Multiple Time

Dec 4, 2010

So, I usually write/find a test case generator for any code that I write. This type of code generally leads to some file output. To be thorough, I try and generate many different files to test my code on.

Say the command is like this:

Is there a way to automate this for many different values of the parameters and generate many different files?

I tried:

I wasn't able to use the $i in the filename, and without it the command gave me no errors, but did nothing else either. I know the Unix command line is very powerful, and I have a feeling that this should be possible, but I just don't know how to do it.

View 3 Replies View Related

General :: CentOS Command-line Program To Randomly Change MAC Address?

Nov 7, 2009

OS: CentOS 5.3 Enterprise Server
Red Hat Nash Version 5.1.19.6

I need to find a command-line program to randomly change my MAC address. I know on Ubuntu there is a program called 'macchanger'. And on Windows another one called 'macshift'. I just can't find one for CentOS 5.3 Enterprise Edition.

View 3 Replies View Related

Programming :: Python - Call Function From The Command Line After Compile The Program?

Dec 28, 2010

If i have a python file with a function call_me(a,b),how can I call this function from the command line ,after i compile the program?

View 5 Replies View Related

Ubuntu Networking :: Program Transmits Whole Graphical Interface Slowly - Command Line With Computers

Jan 18, 2011

I need to use some PCs located on my university from home through the internet. I am using a program called Teamviewer [URL]... The problem is that this program transmits the whole graphical interface, which is slow, but I just need to use the command line with these computers. I am aware of ssh, but my university won't give me access to theses computers over the internet.

View 9 Replies View Related

General :: Moving A File To The Root Of The Drive Via Command Line

Oct 17, 2010

How can I move a directory to the root of a drive via command line?

In MS-DOS it would be 'move C:/GAMES/QUAKE C:/'

What is the equivilent in Linux?

View 8 Replies View Related

Ubuntu Servers :: Use The Mail Command Line Program To Occasionally Send Log Output To Email Aliases?

Jan 27, 2011

Can anyone tell me what the pros and cons are between heirloom-mailx vs mailutils? This is for ubuntu 10.04 LTS. AT this point my only purpose is to use the mail command line program to occasionally send log output to email aliases.

View 2 Replies View Related

Slackware :: Open Dolphin In Root Mode And Shortcut Command Line

Sep 11, 2010

In order to avoid switching user, is it possible to open dolphin in root mode. If yes, what is the command, and the keyboard shortcut to enter it.

View 3 Replies View Related







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