Ubuntu :: Bash Script That Runs A Program N Times?

Oct 20, 2010

A bash script that runs a program N times, takes the numbers program produces (each time different) and calculates the average of those numbers.

View 2 Replies


ADVERTISEMENT

Programming :: Same Program Runs Multiple Times But Get Very Different Results?

Dec 7, 2010

I used wait4 to time a child process. but the results differ each other dramatically. why?my core source code lists as below.to the point: in linux 2.6 kernel, how to time a process with a high precision. and, only its user-time rather than the elapsed time???

static struct rusage ruse;
static pid_t u_pid;
int main(int argc, char *argv[])
{
int i;
code....

View 14 Replies View Related

General :: Use For A Web Interface That Runs Bash Scripts In Bckgrnd?

Jun 7, 2010

I have a set of bash scripts which I need to execute through a web-interface. So that they can be executed remotely, once the web-interface is hosted on a server. Since this is the first time I am trying something like this, I am not sure what language or technology to use for such work. From my knowledge PHP could be a good fit. But not really sure.

View 1 Replies View Related

Programming :: How Can User Runs Bash Script At Boot Of PC?

Dec 28, 2008

I wanna that the pc starts (on/off), the pc arrives to gdm. It waits for an user to log.But but at the boot of this machine, I would like that an user has a script started in the processes (NO X cuz bash script).How can an user runs a script at boot of the PC ? (once only and no one loged)

View 4 Replies View Related

Ubuntu :: Bash Scrpting - Error - Can't Open The Script File And Only Runs Once

Jan 26, 2010

I am trying to run a PHP script over and over again. I would love to be able to just write a small bash script that will just do this for me, however I am having trouble writing a for loop that works. Here is what I have now:

When I run this (./bash_import) I get the following errors:

I have also tried just doing the "php wps_product_import.php" on 20 different lines and I get an error saying it can't open the script file and only runs once.

View 9 Replies View Related

General :: Diary Program That Runs In The Terminal?

May 1, 2011

Is there a diary program for Linux that runs in the terminal?

View 1 Replies View Related

Programming :: Make Script That Runs Program As Another User With Pass?

Jun 7, 2010

I'm trying to do a shell script which are suppose to run a program as a specific user at system boot up. The problem is that I don't know for sure how to make the script add the users password to the prompt when it's necessary.

Basically the program would be run like this:

sudo -u extrema program_name -r /srv/program_name -d

and in this example the password is, "hidden".

How would I make this script run this program as user extrema with the password "hidden" at boot-up? I know how to put the script in the rc.X directory and so on, its more the syntax of the code.

View 4 Replies View Related

CentOS 5 :: What Program Runs The Session Lock And Screen Saver For Gnome And KDE On 5.5

Jul 27, 2011

what program runs the Session lock and the screen saver for gnome and KDE on centos 5.5. But most importantly id like to know what the config file for the screensaver/session lock is called and where its most likely located.

View 4 Replies View Related

Software :: Webpage Access At Specific Times Management Program For Ubuntu?

May 27, 2010

I'm having here at home one quite addicted Farmville & similar game player which I would like to somewhat control in at least late night/early morning hours, Was browsing a while around for a program which could be used as a webpage blocker for several hours (predefined time), but all I came up was either scripts which I don't understand (I myself can be counted as a newbie in Linux stuff) and don't want to risk blindly or just user account time manager (timekpr).

I found a great solution in my case for MacOS users called SelfControl, but as you can guess ... there's no Linux native client for that. So, my question is - is there any easy and understandable way to block specific webpages for a predefined time period (let's say, every morning from 03:00CET - 08:00CET)?

OS: Ubuntu 9.10 Computer knowledge of the farmer: Getting on Farmville and/or playing Gnome's Mahjongg is pretty much all.

View 3 Replies View Related

Programming :: Program A SH - Bash Program With Zenity To Play Radio Based On A Site?

Feb 15, 2011

I will have to code this. However I am lacking of time since I have too much to do. make a short code bash/dash to prompt the country with Zenity, then, get the PLS or m3u url and prompt with another zenity which radio to play. http://www.listenlive.eu/index.html

My code to get url's radio country.htm is:

Code:

View 2 Replies View Related

Ubuntu :: Launcher For Quake That Essentially Runs A Shell Scripts That Runs Quakespasm With Certain Options?

Oct 13, 2010

I have a launcher for Quake that essentially runs a shell scripts that runs quakespasm with certain options. Is there a way to add it to AWN?

View 6 Replies View Related

Debian Configuration :: Udev Times Out Resulting In 3 Min Boot Times

Jan 21, 2016

My systemd-udev-settle.service is failing for some reason.

systemctl status systemd-udev-settle.service -a output
Code: Select all● systemd-udev-settle.service - udev Wait for Complete Device Initialization
   Loaded: loaded (/lib/systemd/system/systemd-udev-settle.service; static)
   
[ode]...

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

View 6 Replies View Related

Ubuntu :: Interactively Operate With Program Using Bash?

Nov 3, 2010

how to interactively operate with program using bash? such as program would ask user to select choice between "a/b/c" and then input enter to confirm? i know i could use

program << EOF
a
EOF

to choise "a", but how to input "enter", so that i could call this program in my script.

View 5 Replies View Related

Debian :: Bash Script As A Program?

May 21, 2011

Is there a way to have a bash script run as a program so you can start it like how you would run apt-get?

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

Programming :: Run A C Program From Bash Script?

May 9, 2010

I'm trying to write a bash script that helps me building C program then run the C program but I don't know how to make it run.I did like this

Code:
#!/bin/sh
# assuming I've built C program '$output' successfully

[code]....

View 5 Replies View Related

Programming :: Sort IP Addresses For A Bash Program?

Apr 29, 2010

I have for example the following IP addresses:

24.172.220.218
41.239.36.19
63.215.202.234
66.176.124.22

[code]....

How can I sort those IP addresses? I want to sort them using the first 3 numbers I also want to count the number of times that address is repeated This is a batch program.

View 4 Replies View Related

General :: SSD Trim Simple Bash Script Program?

Jul 9, 2011

I wrote this script which works but it should run automatically about once per week. I hunted and experimented with KDE Task Scheduler (no dice and no help anywhere) and cron (confusing instructions and cannot edit crontab -e with vim, and cannot enter cron folders/files). I would settle for a desktop shortcut to run the script but found no for that.

Script:

Code:

#!/bin/bash
xterm -hold -e fstrim -v /
Machine:
OS: openSUSE 11.4 x86_64

[code].....

View 13 Replies View Related

Programming :: Can't Pass Variables To A Program In Bash Script / Fix It?

Dec 30, 2010

Trying to do a simple bash script, and having some issues. I am relatively new to bash, and did my best to search, but idk what exactly to search for.

Doesn't work code...

View 6 Replies View Related

Programming :: Write A Bash Script Program In System Command Terminal?

Mar 22, 2010

I'm trying to write a bash script program in the Linux command terminal that will write to a fellow user and then continue reading down the program. this is what i have (kind of explains the idea too):

#!/bin/sh

clear
echo "this is before the write command"
write jcummins
this message should go to jerry
echo "the message didn't send and this string will not appear"
echo "it appears it has stopped at the write command"

View 5 Replies View Related

Programming :: Changing A Line In A Config File While Installing The Program Using Bash Script

Jul 22, 2011

I am trying to write a bash script that installs a program fully automated for me. I am stuck at the one part where i need to change a line in one config file. I have tried various syntax for sed and none have worked. Maybe someone can suggest how to go about this. Since the line appears in the middle of the file, I can't use echo or cat. Also the file will be diffrent lengths depending on the install.

The line I need changed is:

I need that changed to:

the last syntax i tried is:

Yes this is for PNP4Nagios on centos 5.6 64bit. If i can get this figured out. I will be willing to post the whole thing for others to use. it will be used to install PNP after a working nagios install is done.

View 11 Replies View Related

Programming :: Talented Coder To Program Bash / Perl App That Plays SWF On HTML Page?

Feb 10, 2011

Everyone knows that it is like impossible to use mplayer to watch an *.html file. OK.

For instance here is a cool example of lot of streaming for firefox
http://watchtvlivestreaming.com/tvlive/b5499

Code...

Anyone is there a talented bright coder, coming from hell -because it is really difficult, to make such console program ?

View 1 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 :: Runs In Vm Fusion?

Jun 4, 2010

if anybody runs linux in vm fusion.

View 1 Replies View Related

General :: Ubuntu Runs At 50-60% CPU?

Jul 16, 2010

I installed Ubuntu Hardy Heron about six months ago, and it has gradually slowed down, and CPU utilization has crept up to the 50-60% range. The DEV folder contains a large number of similar files - TTY0 through TTYZF or PTYA0 through PTYZF. I suspect that something is not configured right, but, I don't know where to look.

I connect to the internet through a G4 Wireless Transceiver connected to my ethernet port on an IBM Think Center 8187.

View 6 Replies View Related

Ubuntu :: Web Browser Runs Very Slow

Jan 9, 2010

I've been having issues with my laptop. It's a Vostro 1700..My web browser runs very slow and every now and then the computer will become unresponsive. Sometimes it will not open application and will get: couldn't exe command GCACTOOL.I decided to go back to Windows XP to see if Ubuntu was the problem but it wasn't.I got error messages regarding the HD, soo I bought a new HD but the problem is still there.

View 6 Replies View Related

Ubuntu :: Flash Runs Root Only?

Apr 23, 2010

Installed Firefox, Installed flashplugin-nonfree using apt-get, run FF as root and flash plays ok. Run FF as user and no flash. It prompts to download plugins and then fails.

$sudo add-apt-repository ppa:mozillateam/firefox-stable
$sudo apt-get install firefox-3.6
$sudo apt-get install flashplugin-nonfree

View 5 Replies View Related

Ubuntu :: AMD CPU Runs At Less Than Half Speed?

Jun 9, 2010

I have a machine currently running Debian Lenny on which I would like to run Ubuntu for the driver support in its newer kernel. However, I did a test boot from the installation CD and it appears to be running at less than half its rated speed. This is the output from the Debian kernel:

brendand@kant:~$ uname -a
Linux kant 2.6.26-2-amd64 #1 SMP Wed May 12 18:03:14 UTC 2010 x86_64 GNU/Linux
brendand@kant:~$ cat /proc/cpuinfo
processor: 0

[Code].....

Maybe this is some sort of power save bug where the CPU speed is incorrectly scaled back. Has anyone else encountered this problem? Should I report it as a bug, and, if so, how do I do that?

View 6 Replies View Related

Ubuntu :: Xorg Uses 96% CPU When Rythmnbox Runs

Jun 23, 2010

When I start rythmnbox, Xorg goes up to 96-98% of CPU and stays there. It goes back down to below 10 when rbox is minimized or closed.

View 2 Replies View Related

Ubuntu :: Compiz No Longer Runs?

Jul 5, 2010

I have been running Lucid since it was in beta, and have never had any problems with Compiz. Now, all of a sudden it will not launch. If I try to run it from a terminal I get the following:

Code:
compiz (core) - Fatal: Software rendering detected.
compiz (core) - Error: Failed to manage screen: 0
compiz (core) - Fatal: No manageable screens found on display :0.0

Launching fallback window manager I am running an Intel 82915G/GV/910GL built in graphics controller, and when I run the compiz-check script everything checks out fine.

View 4 Replies View Related







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