Software :: Right Order And Grouping Of Sudo, Nice, Output Redirection And "&" To Start A Program?

Mar 1, 2010

I have an X11 GTK program, let's name it "foo".I would like to start it from command line, either from a text console, or from an ssh log-in. I want to run foo with Administrator privileges and in higher priority, and I need redirect standard output and standard error. Standard errors must go to syslog, except "libglade Warning" messages and empty line messages. Standard output is redirected to a file.I wrote a script, called "foo-start". The "foo" program must run continously, so the "foo-start" script should not wait for "foo"'s termination.The scrip actually looks likelike this:

cd "FOO'S DIR"
(sudo nice --10 ./foo --display=localhost:0 &) 3>&1 1>foo-output.log 2>&3 | grep . | grep -v lobglade-WARNING | loggerr -p local7.err -t foo &

[code]....

View 1 Replies


ADVERTISEMENT

General :: Redirection - Redirect The Output Of A Program To The Diff Command?

Jan 13, 2011

I have a program that writes to stdout. Is there a way that I can redirect the output to the linux diff command or do I have to write the output to a file and then compare that. For example I have a bunch of test input files for a program and the corresponding expected output in another set of files. And I'd like to do something like ./program < t1.input | diff t1.expected.

View 3 Replies View Related

Ubuntu :: Netcat Output Pipes And Redirection ?

May 25, 2010

I'm trying to redirect nc command output but I can't do it.

I have tried this:

And this:

But it seems doesn't work.

View 3 Replies View Related

Programming :: Shellscripting: Pipes And Output Redirection?

Aug 21, 2010

see these simple commands:

Code:
# dbus-monitor --system >> /data/eject.txt
This one works as expected ... dbus-monitor never terminates and whenever it outputs new lines, they are

[code]....

View 3 Replies View Related

General :: File Output Redirection - Redirect Stream To Multiple Files?

Dec 7, 2010

I'm working on some scheduled task script files to keep nightly backups of some of our database information in place, and it's a bit annoying when they blow up. I know how to redirect stdout and stderr to a flat file I can view when I come in, and I know that 2>&1 maps them both to the same file (whatever was named in 1). However, I'm running into some cron-time situations where it's easier to have the two streams together, and other cron-time situations where it's easier to have them separated. I can't really tell which is going to happen; is there some way I could create both kinds of output file for my scripts, so that I've got a std_err only file and an interleaved std_out/std_err file?

Note: I've looked at the 'tee' command, but I don't think it will work for what I'm after. 'tee' appears to only work with stdout; I'm trying to work with stderr.

View 5 Replies View Related

General :: Start Java With Nice Value Fails (Missing Libjli.so)

Oct 29, 2010

In principle my java installation works perfect now I tried to increase priority with nice. So I put special user rights to nice:
chmod u+s /usr/bin/nice

And then tried:
nice -n -20 java something
but this gives me the error that libjli.so is missing.

View 6 Replies View Related

Fedora :: Way To Close Ssh -X "nice" After Using A Gui Program

Dec 12, 2009

If i login to my home server with ssh -X, and open close gui program. I cannot exit the shell normaly with ctrl+d.
I think now there to many connection not closed correctly. So now i get the message:

ssh_exchange_identification: Connection closed by remote host

Is there a prober way to close the connection, after using a gui program?

View 3 Replies View Related

Programming :: Convert The XML Output Files To SQL In Order To Create Or Update An SQL Database?

Dec 7, 2010

I've a program which manages my pdf and references. I wish to put some of the information on my website but that program (Mendeley) does export only in XML (or bibtex). I'd like to simply convert the XML output files to SQL in order to create or update an SQL database.I'm not an expert in either XML or SQL (use only PHPMyadmin). Does someone get help me to figure out?

View 2 Replies View Related

General :: Sudo Aureport Redirect Output?

Aug 6, 2010

How do run aureport as root and redirect it's output to a directory that's only writeable by root?

Ex: sudo -u root aureport > /var/log/test.report
/var/log/test.report permission denied
/var/log has these permissions:
drwxr-xr-x root root

View 1 Replies View Related

OpenSUSE :: Program Need To Get In Order To Avoid System32.dll And Trojans?

May 7, 2011

What program do I need to get in order to avoid the system32.dll and Trojans in my computer?

View 5 Replies View Related

OpenSUSE :: App Start Order In KDE4?

Apr 27, 2010

I worte somewhere in time here about this, but I cant find it.. I have a problem, when starting KDE, it begins to start applications, usually the ones that were open (thanks God)... however, order is a bit screwed... It opens Skype, KTorrent, Kopete, Sound, Keyboard and finally, NetworkManager...I would like to put Network to be ran 1st.

View 9 Replies View Related

Ubuntu Multimedia :: Program To Download In Order To Get Options As One Does From Properties In Windows 7?

Apr 7, 2011

In Windows 7, the options are pretty nice - ability to change track name, artist, composer, album, song number in album, etc., all from "Properties." In Ubuntu 10.10, Properties really gives you the bare minimum. Is there a program to download in order to get the same sort of basic options as one does from Properties in Windows 7?

View 4 Replies View Related

Programming :: Handle Own Made Include Files In Order To Compile Program In SUSE 11.3?

May 1, 2011

I have made two source files named as sum.c and average.cI have included sum.c in average.c
both files in Documents directory.when i compile average.ot followingerror"average.c:4:22: fatal error: sum.c: No such file or directorycompilation terminated.How to solve this issue?I have tried to copy sum.c to usrinclude folder but unable to copy

View 8 Replies View Related

Fedora :: Grouping Windows Of Same App

Jun 5, 2011

as i am planning to buy a new computer at the end of this month i am willing to give fedora 15 a try. right now im trying out gnome, xfce and the kde release on my laptop.i really like the feature of kde to set window behaviour for whole applications but i couldnt find one setting that i hoped i would.on mac os x, different windows of, lets say, the browser are all spawned behind one another but a little shifted to the bottom right. does kde have this feature, too?

View 1 Replies View Related

Ubuntu Security :: Allow Program To Be Run As Administrator Without Sudo?

Jun 7, 2010

Certain commands like:
fdisk -l
nmap -sT 192.168.0.1/24
iftop

require administrator privileges to run. A while ago i read a post(forgot where i read it) about being able to let a user run these commands in a script (that contains the desired command) created by the administrator/root without the user having to do a sudo and entering a password. Does anyone know how i can go about doing this?

View 3 Replies View Related

Ubuntu :: Sudo - Add A Program To Startup Menu

Jan 6, 2011

I need to add a program to my startup menu (webserver which needs sudo for port80). I follow their directions, but it breaks the program and no pages are served. I will not be home to guide wife and kids every time they boot the machine to sudo start the program. How do you start a program at boot, as root or sudo start.

View 2 Replies View Related

Debian :: Sudo No Tty Present And No Askpass Program Specified?

Apr 28, 2011

I am running an Ubuntu Server 10.10. I have installed Apache2, I put my perl script in /var/lib/cgi-bin. When I run this perl script from the terminal it works fine. When go to a web browser it doesn't. When I look at Apache's error log, I see this line :"sudo no tty present and no askpass program specified"I tried editing the sudoers file, with the user www-data ALL=(ALL) NOPASSWD:/path_to_my_script. But nothing changed. What am I doing wrong?

View 5 Replies View Related

Ubuntu :: AWN Grouping All Wine Applications Under One Icon?

May 14, 2010

I'm having an issue with my AWN dock where I have enabled it to'group similarapplications', i.e multiple windows of the the same applicationIn 9.10, AWN distinguished between different WINE applications and used their native icons.In 10.04 AWN doesn't distinguish, see the pic belowScreenshot-2.jpgs you can see AWN groups my WINE applications under one icon, the spotify icon and you can see the MS Word logo to the right. This is very irritating since I would like to have separate WINE shortcuts on my taskbar! I'm sure this will affect some other users too.Anyone know how to sort this out?N.B I can't use cairodock as I have issues with freezing and icons not appearing, and i feel docky isn't up to speed with the same functionality as the others for the time being.

View 3 Replies View Related

Ubuntu :: Oddity With AWN And Grouping Common Windows

Jun 1, 2010

I am running a fresh install of Lucid 64bit with Desktop effects enabled and the latest driver from Nvidia 195.36.24 (but had the problem also with the ubuntu repo driver. The issue can be reproduced as follows. Set AWN to group common windows (I believe this is the default) Open several gedit windows (or any other app) Then open firefox and maximize the window (or simply move the window so it's directly above your gedit dock icon.) In the AWN dock, select the gedit icon and try and select an open gedit window. When you click the gedit icon in the AWN dock, you'll see a popup with all of your gedit windows. If you move the mouse to attempt and select one of the gedit's, the menu disappears and you can't select anything.

View 1 Replies View Related

Programming :: List 4 Names From Users List And Output Them To Fbusers In Numbered Ascending Order?

Feb 2, 2010

How would I list 4 users ID numbered 10, 11, 12 and 13 from my users list and output them to a file busers where their names are numbered by ascending order? How would I accomplish that on a one line command?

View 4 Replies View Related

Debian :: Program Path For Openvpn And Allow Sudo For Guest

Nov 8, 2015

I'm looking to allow sudo for openvpn for a user.

I cannot find the openvpn program path though, i try a 'which openvpn' command and it returns nothing! :S

What is the path? or how to allow a normal user account to run openvpn with sudo?

Solution found:

Working directories for openvpn on debian 8 are:

/etc/openvpn
/usr/sbin/openvpn

To add sudo capability to a guest account, run this with your admin account:

Code: Select allsudo visudo

then add the line, with your guest username substituted:

Code: Select allusername    ALL=/etc/openvpn, /usr/sbin/openvpn

tada! guest account now runs only openvpn.

View 3 Replies View Related

Ubuntu :: Making Program To Load With Sudo On Startup?

Feb 2, 2010

I cannot figure how to make a program start-up when Ubuntu boots. I want the "sudo firestarter" command to run so the firestarter icon appears in the panel.

View 7 Replies View Related

Ubuntu :: Change The Boot Order To Make Windows 7 The Default Start Up?

Aug 5, 2010

I am running a dual boot with Windows 7 pro and ubuntu.

How do I change the boot order to make windows 7 the default start up??

View 3 Replies View Related

General :: Unable To Start Apache On CentOS - Invalid Command 'Order'

Aug 25, 2009

I am unable to start apache on my linux machine with following errors Starting httpd: Syntax error on line 117 of /etc/httpd/conf/httpd.conf: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration I am using CentOS5 with apache version httpd-2.2.13

View 99 Replies View Related

Ubuntu :: How To Start Certain App As Sudo

Jul 18, 2010

I seem to only be able to start checkgmail as root. I have it listed as a startup application, and in the command line I entered gksudo [path to file]. How do I make it remember the password at each startup?

View 9 Replies View Related

Ubuntu :: Remove Side Bar And Display Tabs Without Grouping

Jul 12, 2011

The GUI design of Ubuntu 11.04 really drives me nuts. It was completely silly and nonsense, especially the auto-hide feature. For instance, whenever I open Gvim, the toolbar is automatically hidden, I'm like wth, I need "this bar". Another annoying this is I can't keep track of which tab that I'm currently working on, they grouped all together on the left hand side, and the size of these icons are ridiculously huge. How could I change it back to the bottom and keep each tab separate from each other?

View 5 Replies View Related

Ubuntu Installation :: Hard Disk Needs No Password In Order To Mount / Firefox Can't Start

Apr 30, 2010

well yesterday I upgraded my karmic to lynx. So far so good, overall much improved plus I love the new theme. Now the problem, I share my Firefox/Thunderbird profile (stored in my secondary HD) with WinXP (dual boot box). Since karmic, before I opened Firefox/Thunderbird, I had to mount the 2ndary HD which of course prompted me for a password and then everything worked fine. In case I forgot to mount the disk then Firefox popped the following msg: Firefox is either opened or in use.Now, lucid strangely mounts my HD without a password, more peculiarly I have r-w-e permissions and on top of that Firefox/Thunderbird gives me the silly msg!

Tried to unmount/mount back but still no password. I end up believing that this Firefox hesitation to start (based on karmic experience) is related with the password thing...or not?

View 3 Replies View Related

Fedora :: Auto Start A Program On Start Up?

Oct 9, 2009

I just installed TuxGuitar - very cool - and to get the sound to work I had to install Timidity++ as well. Before I start TuxGuitar I have to execute:timidity -iA -Osin a terminal window first, which is kind of a pain to do every time I run TuxGuitar.How do I get this line to execute on startup such that timidity is running when I start up? I tried adding that line to rc.local

View 13 Replies View Related

Programming :: Output Of The C Program?

Jun 8, 2009

See the first program below :

Code:

This code when compiled gives the following errors:

1. conflicting types for 'fun' at line no: 9

2. previous declaration of 'fun' was here at line no: 3

Why is this happening?

If i modify the above program as shown in the second program below:

Code:

This code when compiled gives no errors.

Why the difference occurs between the first and second program?

View 8 Replies View Related

Fedora Installation :: 11 Sudo Has A 20 Second Start Delay?

Jun 11, 2009

i'm using Fedora 11 which i installed a couple of days back... i added my user name to the sudoer list but everytime i run the sudo command it takes at least 20 + seconds before anything happens... this happens everytime i run sudo... in comparison to running su things happen immediately... anyone else experiencing this? now everytime i install or run a command requiring root access i just use su...

View 7 Replies View Related







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