Server :: To Run A Shell Script Automatically On Time?

Oct 8, 2010

I have a shell script named as Ping.ksh.Actually this script will ping 100 server for few second and suit a mail to me the server names those are not in online.So i need to run this script 3am,4am and 5am daily. I'm new to this lunix. run this job daily on above mentioned time interval

View 1 Replies


ADVERTISEMENT

Server :: Resource Stickiness Automatically Move All Resources In Certain Time

Jun 8, 2011

I have configured heartbeat and pacemaker with 2 nodes, all resources work well, all resources stars when some of them is down, when the host is down, pacemaker moves all resources to the other one, my configuration:

[code]...

i have the directive " resource-stickiness="INFINITY", when node1 is down, the node2 starts all resources and prevent failback again though the node1 is up, back i need move all resources to the first one when I certainly sure the node1 is runnig, is there some directive to tell pacemaker that move back again the to node1 automatically? i mean, is posibble to move back resources to node1 when It has passed certain time, maybe 1 hour or something?

View 2 Replies View Related

General :: Terminal Command / Centos Server Starts Mysqld, Httpd And Ftpd Services At Boot Time Automatically?

Dec 27, 2010

Can anyone tell me what command can be used so that the Linux Centos Server starts mysqld, httpd and ftpd services at boot time automatically?

View 2 Replies View Related

Red Hat / Fedora :: Time Config / Always Changes Time Automatically?

Jun 18, 2010

I have a concern regarding my clock in fedora 12. It always changes time even when I do not change it.

In fedora 10, I to go to CLI > time config > uncheck UTC, But now, it doesn't seem to work. Code: [jun@localhost ~]$ time config
Command not found.
real0m2.875s
code...

View 1 Replies View Related

General :: Shell Script Executing Automatically?

May 16, 2011

I want login.sh shell script executing automaticaly whenever i open the console..?and also logout.sh shell script executing automaticaly whenever close the console.

View 1 Replies View Related

Fedora :: Use NTP To Set The Time Automatically?

Jan 15, 2011

I am going nuts because this should a simple thing and for some reason it's not. 1. I'm just trying to use NTP to set the time automatically. I've done numerous installs and had it work fine. However for my Fedora 11 box and this Fedora 13 box, it's not working. I'm getting a vague error "unable to connect to server." Which could mean anything. As near as I can tell, it should be simple:

a. Select to use NTP.
b. Adjust the local firewall to allow connections at 123 (ntp)
c. If necessary, adjust the router settings for port 123.

I have tried sending port 123 traffic directly to my Fedora 13 machine, but same error. I've tried using other choices of ntp server (like the North America pool). No dice. I've had two separate routers, first a Dlink and now a Cisco. Same problem. I've checked the SELinux logs for errors but didn't notice anything obvious (that doesn't mean much -- I'm not much of an SELinux guru). I've set up Fedora 14 at work and it connected just fine. Didn't have to open anything other than the local port on the Fedora firewall. No network/router adjustments needed.

It's not a giant thing but it's driving me nuts. Anyone out there have any suggestions? Particularly big obvious things that maybe I've overlooked? Does some other setting override this NTP time? Does using this require use of GMT? Something like that?

View 14 Replies View Related

Programming :: Shell Script That Will Automatically Get Executed On Logging In?

May 29, 2011

I want a script to get executedutomatically whenever I login.Code is simple:Quote:dateYEs! it prints the date on the screen.I read somewhere that there is login.sh shell script which get executed automatically whenever one opens console.But how to insert the above code into it.?Also, we can put our command in $HOME/.bashrc and it will get executed everytime I start the interactive shell.

View 1 Replies View Related

General :: Shell Script To Automatically Login Through Ssh And Create User?

Oct 20, 2010

I was trying to create a shell script which will automatically login to the server 192.168.1.7 and checks if a user exists there or not, if it doesn't exist then it should create the user.I have very little idea about shell scriptThis is what I tried:Quote:

#!/bin/bash
pass="sacharje"
ssh 192.168.1.7

Now, how to pass that password automatically to the ssh when it asks for the password? (I can't use public key authentication here)

View 10 Replies View Related

Programming :: Create A Shell Script That Would Automatically Backup And Shutdown?

Oct 14, 2010

I would like to develop a shell script that would automatically run a backup program and then shutdown the computers, but I do not know the first thing about script development or even writing scripting.

View 2 Replies View Related

Programming :: Shell Scripting For Accepting Input From Different Directories Automatically

Nov 6, 2010

The two shell scripts (t1prog and t2prog) are given below they are working fine. The input for the first program is 't1.det' and for second program is 't1.rnaml'. These two input files are in 'dir1' folder. I am executing the shell like 'sh t1prog > t1out' and 'sh t2prog > t2out' from this directory only. Then I am executing a java program 'java RNA'; for this, t1out and t2out are input files used in the program and I am getting the final output on screen.

The input files 't1.det' and 't1.rnaml' are in different folders with same name and with different values. Each folder specifies one gene sequence input files.

In mfold directory there are 5 directors and each directory contains these input files as shown below
cd mfold
dir1 dir2 dir3 dir4 dir5
cd dir1
t1.det t1.rnaml

[Code].....

for inputs in different directories and executing these and redirecting the final ouput after executing 'java RNA' statement to a file is needed.

View 2 Replies View Related

General :: Centos 5.x Time Change Automatically?

Jun 21, 2010

i am using squid proxy on centos 5.x release with stable version. during installation time i fixed date time region.it was basicaly gmt +3:00 hours. so everything was fixed, now since past few days every 24 hours it change its time automaatically. this looks like it take update somewhere from internet or internally something is mess up.could someone guide me how to fixed permanantly date time. even either restart the machine or passing 24 hours it do never change it. etc

View 2 Replies View Related

Programming :: Shell Script To Automatically Delete Files With The Same Name As The Parent Directory?

Mar 18, 2010

I am facing a problem in Windows due to a virus called Newfolder.exe which creats files with the same name as it's parent directory and an extension .exe and this happens for every directory in the entire hierarchy in the infected pen drive. The antivirus detects them, but is sucking slow. So I thought this is a good opportunity to use the concepts of the all mighty shell script to remove those as they follow the same pattern. Say my complete path is

Code:

/home/pkd/fol1/

The virus would have created an file with complete paths

Quote:

/home/pkd/fol1.exe

If fol1 has two more directories fol11 and fol12 Then there would be two more .exe(virus created) in the following path

Quote:

/home/pkd/fol11/fol11.exe
/home/pkd/fol12/fol12.exe

View 1 Replies View Related

Ubuntu :: Using 10.04-server 64bit AMD With Fluxbox - Matlab In A Shell The Shell Does Not Display Characters Anymore

Jul 26, 2010

I am using ubuntu10.04-server 64bit AMD with fluxbox. After I ran Matlab in a shell (without GUI) the shell does not display characters anymore, but will execute any command, I just can't see the characters that I'm typing.. I use aterm and xterm, does anybody know why that is, am I missing a package?

View 1 Replies View Related

Fedora :: Hard Drive Automatically Unmount After Some Time?

Sep 28, 2009

I have external USB hard drive of 320GB(seagate sata).It works fine but, it unmount automatically after some time.In windows it works fine without any problem. also I unplug USB cable & plug it again to mount it is there any other way of mounting it after it gets unmounted.

View 1 Replies View Related

General :: Automatically Kill Processes That Over Time Uses 95%+ Of Resources?

May 3, 2010

I don't know about your computer but when mine is working properly no process is sucking 95%+ over time. I would like to have some failsafe that kills any processes behaving like that. This comes to mind because when I woke up this morning my laptop had been crunching all night long on a stray chromium child process.

This can probably be done as a cron job, but before I make it a full time job creating something like this I'd thought I should check here. :) I hate reinventing the wheel.

View 1 Replies View Related

General :: How To Set Debian To Automatically Update Time And Date

Aug 14, 2011

I have an old computer and BIOS counts the time slower than real. So, how can I set my OS to update the time automatically using the internet? If it updated the time only during booting, it would be enough.

View 2 Replies View Related

Ubuntu :: Waking Automatically From Suspend At Specific Time

Aug 10, 2011

I'm looking to find a way to schedule my computer to wake up at say 7:00am. Every night before I go to bed, I put my computer into suspend so the fan doesn't wake me (old computer). I can't seem to find a task scheduler that allows me to be able to wake the system.

View 6 Replies View Related

General :: Automatically Open Terminal At Login Time?

Jun 7, 2011

I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout

View 13 Replies View Related

Fedora :: Save A Workspace To Automatically Opens Every Time You Boot?

Jul 10, 2009

Is it possible to save a workspace so that it automatically opens every time you boot Fedora?

I like having Pidgin, Evolution, VLC, and Transmission open in the 4th workspace all the time. Sorry if this has been asked, I searched and found nothing, and this is the first Linux OS I've ever used!

View 14 Replies View Related

Fedora Servers :: Set Standby Time To Sleep And Wakes Up Automatically?

Jan 9, 2011

I have a home server that I'd like to put into standby for a specified period of time (like from 1AM to 9AM) daily. How could I make this happen, so that it goes to sleep and wakes up automatically?

View 5 Replies View Related

OpenSUSE :: Date And Time Automatically Adjusted 4 Hours Back

Jun 22, 2011

I have a switch tray on my computer and I installed opensuse in one of the hard drives that I have but as I switch between the windows hard drive and opensuse the time changes all the time. For example it's 10pm right now and if I switch the hard drive to opensuse the time automatically gets adjusted 4 hours back and then I fix it and when I switch back to my windows hard drive the time goes forward 4 hours. I check both region settings and they are both set to NY Eastern time. Why is it doing this?

View 2 Replies View Related

General :: Get Ubuntu To Automatically Run A Program Every Time The Screen Is Unlocked?

Oct 31, 2010

I have a script I would like to have automatically invoked every time the screen is unlocked. Does Ubuntu provide some support for users who wish to do this?

View 1 Replies View Related

Ubuntu :: Get The Mouse To Continuously Click Automatically After A Set Time Interval?

Mar 21, 2010

not sure if this goes here, but is there a way to get the mouse to continuously click automatically after a set time interval? (eg, 2 seconds) i've googled and found plenty of auto-clicking software for windows, but no luck for linux.

View 2 Replies View Related

Hardware :: How The Dates Work - System Automatically Adjusting Time

Nov 23, 2010

When the computer is on... we assign a date and time... My question 9is how is the system automatically adjusting time when i start my machine even months after...

View 4 Replies View Related

General :: Automatically Trigger A Cron Job Each Time I Log In On System Account?

Jul 27, 2011

Is there any way to automatically trigger a cron job each time I log in on my linux account.

View 9 Replies View Related

Fedora :: Schedule Some Shell Scripts At Certain Time?

Jun 30, 2011

How can I schedule some shell scripts at certain time and upon certain actions (on start, shut down, etc...)??

View 1 Replies View Related

Ubuntu :: Automatically Mount The Disk And Enter The Password Each Time Boot Up

Mar 7, 2010

i'm trying to get everything working ok. i have installed ubuntu using wubi and i've found that i can access my files on my windows partition from ubuntu. to do this i have to mount the disk and enter the password each time i boot up, and i would like this to be done automatically. i was wondering if this was possible? i put in a link directly to the music folder on windows into my 'places' but it only appears once i have put the password in. its not a huge thing, but its one of those things which would make starting up my ubuntu a lot more conveniant.

View 4 Replies View Related

Ubuntu :: Pam_mount Mounted Encrypted Partition Gets Automatically Unmounted Over Time?

May 15, 2011

/etc/crypttab :
Code:
storage /dev/sdb none luks, retry=1
/etc/security/pam_mount.conf.xml :
Code:
<volume path="/dev/sdb" mountpoint="/storage" cipher="aes-cbc-essiv:sha256" />

[Code]...

View 1 Replies View Related

Debian Multimedia :: Gnome Shell Slows Down Over Time

Jun 6, 2015

I find gnome-shell 3.14.2 becomes slugish after several days of use. This manifests in short delays on window functions, such as closing a window or opening a new one. Restarting gnome shell fixes it.I thought of trying to take a stack trace during the delay, but found 2 issues:

1) debian doesn't have gstack/pstack package ...?
2) attaching a debugger to gnome shell from gnome shell hangs it (duh) , which means I can't type the "bt" command

View 4 Replies View Related

Programming :: Shell Script: Wait On Two Processes At The Same Time?

Mar 16, 2010

I'm writing a script that needs to spawn 2 or more processes and wait for their return status. I have a method to do this by waiting on each process individually like this:

Code:
process1 &
PID1=$!

[code]...

View 14 Replies View Related







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