Programming :: Start Up A Shell Script When The System Starts?

Mar 1, 2010

This is on Fedora 11. How do I start up a shell script when the system starts?

View 6 Replies


ADVERTISEMENT

OpenSUSE :: Start Vncserver Service When System Starts?

Apr 29, 2011

dear, in centos / fedora, I can config to start a permanent vnc session by setting the /etc/sysconfig/vncserver file when the system starts. Is there any similar configuration in opensuse which give me a permanent session?

View 6 Replies View Related

Programming :: Start Servers Which Are Running On Pc With One Shell Scrip

May 19, 2010

I want to start servers which are running on my pc with one shell script.

what I wrote is.

#!bin/sh
cd /home/HUNT/server1
gnome-terminal
sh script/server start_with_output

[Code].....

Result I got is:

A new terminal opened with current directory as /home/HUNT/server1 and server started running.

What I didn't get: second terminal and second server were not running.

View 6 Replies View Related

Programming :: Start A Process And Send Input To It In A Shell Script?

Jun 9, 2011

I'm building a Linux From Scratch system and partially automating it. I will likely want to do it again, and I would like to try to almost completely automate it.

My current approach is a script that takes an input file and sequentially runs each line in a new instance of bash. If one fails, it gives me the number of the step that failed so that I can use the "--step" option to resume after I fixed the issue.

This has some problems:
A varible created on one line will not be accessible on the next line. This is because each line is run in a separate shell (the reason for this is so that the commands in the input file and the script's internal variables can't interfere). You can't switch users or use chroot, again because each line is run in a separate shell.

What would be nice is to be able to start a bash process in the background and send commands to its stdin. I guess that a named pipe would work, but the named pipe will be gone after a chroot. Is there a way to do it without relying on the filesystem? Also, how do I know if the command failed?

View 14 Replies View Related

Programming :: Count Number Of CD-ROMs On A System Using Shell Script

Apr 7, 2010

I am trying to get the count of number of CD-ROMs attached with my Linux system using a bash shell script. I have decided to use the following method for it:

Code:
debian:~# cat /proc/sys/dev/cdrom/info | grep "drive name:"
drive name: sr0 hdb

So basically I know that there are two CD-ROMs attached to the system. Now there can be three also like this:

Code:
debian:~# cat /proc/sys/dev/cdrom/info | grep "drive name:"
drive name: sr0 sr1 hdb

All I want to do is in my shell script to get the count of the devices in a variable using the above command.

View 2 Replies View Related

Programming :: Perl About System Command / Fails If The Standard Shell Is Dash And Not Bash?

Jun 30, 2011

I am trying to fix a perl script, and I really suck at perl. But I think this problem will be easy for people who know it.

The problem is, I have an old setup script someone wrote many years ago. It fails if the standard shell is dash and not bash. The only way I've gotten it to work is to point /bin/sh to bash. I looked thru the script and it uses "system" many places, and I think that's the problem.

I searched for it and found this link:url

My plan is to include this function:

Code:
sub system_bash {
my @args = ( "bash", "-c", shift );
system(@args);
}
Then I could simply change all calls to system into system_bash and it should work?

The parameter to the system calls is usually some variable. What if the parameter is a list already? Do I need to test for it somehow, and if it's a list, prepend "bash" and "-c" to the list? How do I do that?

In the script there are lots of places like this:

my $error = system($cmd);
if ($error) {
die/warn "some error message";
}

Shouldn't there be a return in the system_bash function?

View 8 Replies View Related

Programming :: Shell Script And Administration Of A System - Change Or Set The IP Address And Subnet Mask

Aug 26, 2010

tasks of an administrative level that we can use Shell Script to automate them. It's a kind of homework for me to figure out how to automate those tasks. Using PHP and Shell Script design and develop a Web Interface to change or set the IP Address and Subnet Mask of the UNIX / Linux System. The related services must be restarted automatically for the new IP Address and Subnet Mask to take effect. No user name and password should be asked for when using that Web Interface. How would you do it?

View 10 Replies View Related

General :: Get Start With Graphics Programming In C Under System?

Jun 24, 2010

Can anyone tell me how do i get start with graphics programming in c
under linux..

View 3 Replies View Related

Programming :: Start Video Resource Manager In System?

May 5, 2010

I am trying to develop a video resource manager in Linux.By that what I mean is, if two applications (may be running in two different machines) are trying to play videos, the video resources will be served by this video resource manager (running at a center location). Pardon me as I donot have much idea about video resource handling in Linux , first of all , it is feasible to have this kind of a layer, in between the applications and the available resource hardware.
Kindly give me some pointer as to how do I start? Pl. give me some reference URLs.

View 2 Replies View Related

Slackware :: Make Start X Whenever It Starts?

Aug 9, 2010

How can I make slackware startx whenever it starts instead of having to go login as root and type startx each time?

View 6 Replies View Related

Programming :: START And STOP Oracle Automatically On System Startup And Shutdown?

Aug 17, 2009

I have installed Oracle 11g on 5.3. Now, I am trying to START and STOP oracle automatically on system startup and shutdown. I am following this link To have this effect, I have created /etc/init.d/dbora

Code:

#!/bin/sh
# chkconfig: 345 99 10
ORA_HOME=/oracle/app/oracle/product/11.1.0/db_1

[code]....

View 4 Replies View Related

Programming :: Make A Bash Script Start Automaticly When System Restart?

Apr 4, 2009

ia have this script
#!/bin/bash
if [ -e /tmp/mysql.pipe ]; then

[code]...

View 3 Replies View Related

Slackware :: Start Program When Fluxbox Starts?

Apr 25, 2010

I use NetworkManager to handle my net connections and it's applet that allows me to control everything from the gui is called nm-applet. I was able to edit /etc/X11/xinit/xinitrc.fluxbox so that nm-applet starts when fluxbox does and away I go. From runlevel 3 that is.

On my laptop I like to boot into runlevel 4 for various reasons. When I start a fluxbox session from runlevel 4 this doesn't happen. What file do I have to edit to get this to start from runlevel 4?

View 13 Replies View Related

Ubuntu :: Get MySQL Daemon To Start When The Machine Starts Up?

Mar 17, 2010

I'm trying to get mySQL Daemon to start when the machine starts up (and it requires root privileges to run). The command to startup would be

Code:
sudo /etc/init.d/mysql start however that would prompt for a password, and that would not be very well possible now would it? Now, if i try to start it up without being root, it will not start. So this is my problem, maybe someone out there would know a bit more about this than me.

View 5 Replies View Related

Ubuntu :: Megaupload Download Didn't Starts Or Start Later?

Dec 10, 2010

I've installed tucan on my HP Pavilion dv2800t with ubuntu 10.10.Megaupload download didn't starts or start later. If I try cut and paste link on Firefox I recives a message from Megaupload sites for more request by my ip adress and wait for download more minutes.The other downloads from rapidshare, hotfile ecc with tucan works fine.

View 1 Replies View Related

Ubuntu :: Start A Program Which Starts From Terminal Window?

Jan 2, 2011

I want to start a program which starts from terminal window and needs sudo permission. How can I start it from Application menu without need of any permission?

View 2 Replies View Related

Ubuntu Servers :: Nmbd Does Not Start But Smbd Starts

Jan 14, 2011

The time the server smbd and nmbd functioned normally but when I restart the service he returned smbd nmbd not normal but when I try to start it the following error occurs:

Code:
service nmbd start
start: Job failed to start
service nmbd status
nmbd stop/waiting

[Code]....

View 4 Replies View Related

Programming :: Shell Scripting / Create A Shell Script Similar To Ls?

Jun 5, 2011

I am trying to create a shell script similar to ls, but which only lists directories. I have the first half working (no argument version), but trying to make it accept an argument, I am failing. My logic is sound I think, but I'm missing something on the syntax.

Code:
if [ $# -eq 0 ] ; then
d=`pwd`
for i in * ; do
if test -d $d/$i ; then
echo "$i:"
code....

View 10 Replies View Related

General :: Start/stop Recording Automatically When There Is Someone Starts Talking?

Dec 24, 2010

I want to start recording when someone starts talking, and stop recording when it becomes silent. I guess if there is stream audio processing tool like ImageMagick, so I can strip away blank sections like this:

$ rec -t wav - | wavefilter -strip-blank=3sec | lame - >record1.mp3

EDIT This question is resolved by using:

$ rec -t wav - silence 1 0.1 3% -1 1.0 3% | lame - >record1.mp3

View 1 Replies View Related

Ubuntu :: Start-up Text From When Grub Starts To When Desktop Appears?

Feb 11, 2010

How do I log all start-up text from when Grub starts to when my desktop appears?

View 2 Replies View Related

Programming :: Bash-shell-like Less Functionality In The Python Shell?

Jun 25, 2010

Is there some type of functional way to read things in the Python shell interpreter similar to less or more in the bash (and other) command line shells?

Example:

Code:

>>> import subprocess
>>> help(subprocess)
...
[pages of stuff to read]
...

I'm hoping so as I hate scrolling and love how less works with simple keystrokes for page-up/page-down/searching etc.

View 4 Replies View Related

OpenSUSE :: Use Webkam (from Kde Repo) But The Launcher Starts Up But The Program Doesn't Start

Jan 12, 2010

I've gotten everything working on my laptop except the webcam. I'm trying to use webkam (from kde repo) but the launcher starts up but the program doesn't start. The driver is "uvcvideo" which loads with no error messages.

Code:
62: USB 00.0: 0000 Unclassified device
[Created at usb.122]
UDI:
/org/freedesktop/Hal/devices/usb_device_c45_6406_noserial_if0_logicaldev_input
Unique ID: MtLc.1biges91ot8
Parent ID: k4bc.cO89g+iefn1

[Code]...

View 8 Replies View Related

Ubuntu :: Installed Corectly The Program, But When Start It, It Starts To Integrate To The Kernel?

May 12, 2010

installed corectly the program, but when I start it, it starts to integrate to the kernel, I got error and this is the log.

Code:
May 12 16:04:07.612: app-139838623995648| Log for VMware Workstation pid=25181 version=7.0.0 build=build-203739 option=Release

[code]....

View 9 Replies View Related

OpenSUSE Install :: When Start The Computer The Green Screen Pops Up And Syslinux Starts

Jul 24, 2011

Iam tring to install 11.4 on my new computer, when i start the computer the green screen pops up and syslinux starts. However when it finishes loading a dialog box pops up saying "Make sure that cd number 1 is in your drive" . Obviously it it is,
because i am booting from the dvd. I dropped to the shell where i saw this message "Inappropriate ioct1 for device". What does all this mean.

View 2 Replies View Related

Fedora :: Open An Application When System Starts?

Jul 15, 2010

How to open an application when fedora system starts.

View 4 Replies View Related

Fedora :: System Starts In Grub Prompt?

Jun 20, 2011

I have Windows Vista in a primary partition & Fedora 14 in a logical partition.

Recently, I increased the size of the extended partition and created another logical partition inside it. I formatted the new logical partition from Vista.

After reboot, instead of the list of operating systems, I started getting "grub>"

I searched on the internet and modified entries in /boot/grub/grub.conf, from (hd0,4).. to (hd0,5)..

I still get the grub prompt, but if I enter " configfile (hd0,5)/boot/grub/menu.lst " it shows the os list & I can use Fedora.

How can I configure the system so that it shows the list of os instead of "grub>" ?

View 4 Replies View Related

Ubuntu :: Firefox Always Starts On A System Reboot?

May 11, 2010

How can I stop Firefox from always loading when I restart my computer?

View 2 Replies View Related

Ubuntu Installation :: Get A Black Screen When The System Starts Up?

May 1, 2011

i have tried to install Ubuntu 11.04 but everytime i try i get a black screen when the system starts up. i have tried to install via cd and the upgrade option.I am currently using Ubuntu 10.04 and this has no problems.I have also tried the esc key when i insert the disc and this brings the option to install but after this i get a black screen again.

View 9 Replies View Related

General :: High IOWait - System Starts To Slow Down

Jan 5, 2010

I've been having a problem in Ubuntu 9.10 recently where starting about 2 minutes after startup my computer slows down and becomes unresponsive. I believe the problem is associated with a high IOWait because I have the system monitor applet on my Gnome Panel and it displays 100% IOWait every time my system starts to slow down. I have tried booting into other kernel version and the problem persists. I don't really know what IOWait is or how to diagnose this problem further. I've looked around online and it seems like you have to find a specific process that is causing the IOWait, but I don't understand how to go about doing that.

View 6 Replies View Related

Programming :: Prevent "leak" Into Shell From A Customized Shell Menu Script?

Dec 15, 2009

I've created a simple script based menu. This menu will be accessed by only a certain users via ssh.When user logs in, the menu will automatically run. (configured at user's .bash_profile).How do I force the session to close when user hits Ctrl-C or Ctrl-Break ?In a nutshell, I don't want user to have access to shell.

View 11 Replies View Related







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