CentOS 5 :: Scheduled Task That Executes A Shell Script?

Dec 17, 2009

I centos version 5 installed on server 2, and I want to make a scheduled task that executes a shell script.This script should copy some files and directories from one server to another. I do not use DRBD and Heartbeat.

View 1 Replies


ADVERTISEMENT

CentOS 5 :: Creating A Simple Live CD That Executes A Shell Script?

Mar 9, 2010

I would like to a build a CD image (of CentOS 5, x86_64 that loads into memory and boots to the OS without installing anything to hard drives. Then I would like the system to execute a shell script automatically. The shell script will have commands that will control execution.

The goal of this exercise is basically to pre-configure a system (RAID config, BIOS update, etc) automatically using the shell script before installing the OS. I would like the ability to change the shell script as needed and probably repackage the ISO image. I would prefer not to deal with building a source tree to accomplish this. this is something one could do using mkisofs.

View 1 Replies View Related

Ubuntu :: Scheduled Copy Folder Task?

Jan 10, 2011

i was reading on how to do scheduled tasks, however i couldnt find anything that was a scheduled task to copy a whole folder to a NAS(Network Storage) thats linked on my ubuntu desktop every 4 hours or so.

View 1 Replies View Related

Ubuntu :: Want To Set Up A Scheduled Task To Take A Screen Shot?

Feb 13, 2011

I have my background as a satellite picture of the earth. Right now I have a scheduled task to grab that picture off the internet (the website updates it every three hours) so my background is a 'live' snapshot of the earth.

I want to set up a scheduled task to take a screen shot every three hours, so that I can see, for example, the way the earth changes over the course of a day...a week, etc. I already have the Scheduled Task Manager from Gnome, but would anyone know what command I could use to do this?

My biggest problem is figuring out how to change the name of the picture it saves it as every time. (e.g. earth1.jpg, earth2.jpg, earth3.jpg, etc.)

View 2 Replies View Related

Ubuntu Servers :: Get Scheduled Task To Run A Bash Script?

Sep 10, 2010

I am trying to get Scheduled Task to run a bash script (which runs an rsync command) but it does not seem to be running. I can run the script from the command line with out a problem, but I have it scheduled in Scheduled Tasks to run once everyday and I can't find any evidence of it running or any indication why it does not run. is there a better GUI for scheduling tasks? I am running 10.04 server with xbuntu desktop

View 5 Replies View Related

General :: Shell Script That Logs Into Another Machine And Executes Some Commands?

Jan 5, 2011

I am trying to write a script that connects to a server and executes some commands on there. Something like this:

#!/bin/sh
telnet remote_machine
cd /home/some_directory
cat a_file_in_current_directory

Unfortunately after login/password I guess the script doesn't jump past the telnet command, until I exit. What do I need to do to make the script start executing commands in the remote shell?

View 1 Replies View Related

CentOS 5 :: Create A CentOS Based LiveCD That Mounts A NFS Share And Executes One Script?

Aug 14, 2009

I'm trying to create a CentOS based liveCD that mounts a NFS share and executes one script there. The NFS never mounts altough while logged I can mount it with the very same command that I use in the KS.

In the %post I have :

%post --log=/tmp/post.log --erroronfail
mkdir /mnt/nfs
mount -o nolock 10.23.1.1:/csc/RemoteHome /mnt/nfs

I added the --log in order to debug, but nothing is written in /tmp/post.log. I tried redirection on the mount command with >> /tmp/debug.log but this is not written. Maybe during the post sequence /tmp is RO ? Anyway, I tried with ifup lo, service portmap start in the %post, but doesnt change (I even have a service : command not found in the live cd creator output).

Here is the remainder of the KS :
lang en_US.UTF-8
keyboard us
timezone US/Eastern

[Code]...

View 10 Replies View Related

General :: Performing Admin Task Like Changing Owner Of A File Through Shell Script

Apr 5, 2011

I want to automate my tasks of administrator using shell scripts like changing owner of a file which usually only the super user which requires password can change i want to do this thing using shell script how to do?

View 4 Replies View Related

CentOS 5 :: Scheduled Unattended Backups With Alerts If The Backups Fail

Feb 3, 2011

I've been a DOS/Windows guy for 20 years, and recently became a SW test lab helper. My company uses CentOS for a lot, so I've become familiar with it, but obviously not as comfortable as I am with Windows.

Here's what I have planned:

machine: Core 2 Duo E8400, 8GB DDR2, 60GB SSD OS drive, ATI 4650 video card, other storage is flexible (I have 3 1TB drives and 4 750GB drives around that can be used in this machine.)

uses: HTPC, Network Storage, VMWare server host: SMTP, FTP server, and Web server virtual machines

I've figured out how to do much of this, but I haven't figured out how to do backups in Linux. I've been spoiled with Windows, with the built in backup system so simple to use. I find myself overwhelmed with the array of backup software, and unable to determine which to use. none of them seem to do everything I need them to do, but some come close, I think. I'm hoping someone here can help me out in figuring out which program to use and how to use it.

Here is what I need the backup software to do:
1. scheduled unattended backups, with alerts if the backups fail
2. a weekly full backup with incremental every 12 hours
3. removing the old backups when the new full backup runs, I would prefer to keep 2 weeks of backups, but that's not necessary
4. a GUI would be preferable, since my arthritic fingers don't always do as I want them to do. I typo things a lot, and the label worn off my backspace can attest to that.

View 7 Replies View Related

OpenSUSE :: Tasks Overlap In Task Bar (system Tray / Task Manager)?

Jun 26, 2011

Anybody knows how to fix overlapping tasks in KDE system taskbar?Here System Monitor overlaps with digiKamWorkaround to rearrange icons - start any new task.Sorry for taking real photo of the screen. When I do PrintScreen KSnapShot task appears in the list and makes all task to rearrange. The resulting screenshot contains already fixed view.

View 5 Replies View Related

Ubuntu Installation :: Task Manager Or Task Bar, Keeps Changing Length?

May 29, 2011

After upgrading from 10.10 to 11.04 all of a sudden, the task manager or task bar, keeps changing length. The individual window "buttons" themselves keep changing size - flashing even, and the space between them also changes. It is driving me nuts! The little system tray(?) icons no longer appear in the system tray, but all stacked on top of each other in the top left corner.

View 1 Replies View Related

General :: No Task Bar In My Centos 5.6 Gnome

Apr 16, 2011

I upgraded my Centos 5.5 to 5.6 and now my task bar is missing even the time is not visibal. What could have gone wrong?

View 3 Replies View Related

CentOS 5 :: Panel And Task Bar Missing?

Feb 4, 2010

I installed HP Linux Imaging and Printing system yesterday and since then my panels are missing, is there a way to access the config files to correct this?

View 1 Replies View Related

General :: Launching A Task From Cli And Divorcing It From Terminal Task?

Feb 10, 2011

How do you launch a task from a terminal command line interface and it not be kill'ed if you close the terminal window. Like if I run jedit I type jedit & which launches jedit as a backgorund task. But, if I close terminal window, jedit dies to. How do I laucnch jedit and completely divorce it from the terminal task?

View 6 Replies View Related

CentOS 5 :: System Administration Function - Starting But Fail To Come Up Then Disappear Of The Task Bar

Oct 12, 2009

Several of the the items in the menu System --> Administration do not function. They say they are starting but fail to come up then disappear of the task bar. Is there anywhere i can look to see why it has failed to come up?

All item in the menu except; Display, Hardware, Server Settings, System Monitor

View 2 Replies View Related

General :: Evolution Task List Reminder (sync With Phone And Online Task List)

May 19, 2011

I have my task list in evolution (mainly so it can sync with my phone and online task list) but I always forget to look at the task list. Is there an application or plugin which periodically displays the contents of the tasklist or even better, it briefly displays the most urgent/important tasks when I login? Or anything else which automatically displays the most important tasks. Currently I have to open the task list and look at them (which I usually forget). I do not mean some kind of alarm when the task is due but more a daily reminder of what to do.

View 3 Replies View Related

Ubuntu :: How To Tell Which Binary Actually Executes

Apr 20, 2010

Is there a command that can tell me which binary actually executes for some program name? "whereis" seems to do something different.

Specifically, I am trying to hunt down and kill a python 2.6 installation that just won't die.

whereis just seems to be returning anything with "python" in its name, but I want to know which binary thinks it is python 2.6.5. (By the way, I've tried all the above manually, and it isn't any of them)

View 6 Replies View Related

Ubuntu :: Conky Startup Script Never Executes

May 6, 2010

I'm having trouble getting conky to boot friendly-like with the gwm. If I just set conky as a start up program, it floats above other windows, it seems to have loaded before the desktop actually did. So I googled it and found that many people use the conky shell scripts to make it sleep until the desktop load. I created one, made it executable, and restarted to see the effect and found that conky never launched at all (not visible, no running process).

Here is my startup shell script for conky:
Code:
#!/bin/bash
sleep 10 && conky;

This is how it should look if working properly. If I launch conky after login, it looks like this every time. [URL]. This is how it looks if I simply set it to open upon startup with no script. [URL]. If I try to open it with the script, I simply never see anything in conkys place. It seems like the script never executes. I've tried setting longer and shorter sleep times, but I never see so much as a single instance of conky running.

View 8 Replies View Related

Ubuntu :: Secondary Hd Permission Denied On All Executes?

Jun 7, 2011

I completely switched to Ubuntu 6 months ago. I kept my secondary sata hd as ntfs for a while but started having permission problems. I switched it to ext4 and that worked for a while but then it started having permission problems again. Specifically, I can't execute anything on that hd drive. I converted it to ext2 and it still didn't help. I have 2 executable modules that I moved up to the root directory to make this simple and they look like this:

tom@tom-desktop:/media/sda1$ ls -l
total 3088
-rwxr-xr-x 1 tom tom 3099451 2011-04-23 16:36 bochs
-rwxr-xr-x 1 tom tom 26064 2010-09-11 08:48 bzip2

[Code]...

View 6 Replies View Related

General :: RT Process Stuck As Runnable 'R' / But Never Executes

Jul 28, 2011

I have a hard to reproduce (seen a couple times in a month) issue where my program seems like it is hung (not increasing in cputime), however, it is in the runnable state and never gets to run. The cpus are 99% idle according to vmstat and the load is 5 (which is equal to the number of threads in my program that are in the R state) according to ps, and there are no processes on the system in the 'D' state. The other major oddity is that one of the migration threads has a cputime usage almost equal to the uptime of the system. Typically migration threads have a cputime on the order of seconds across hundreds of days of uptime, but in this case the migration thread has DAYS of cputime according to ps.

The last time this happened, I went around saving as much /proc/X information that I could into logs for referring to later, before I had to reboot the box to get it running back to normal. (because in this state, a kill -9 is not heeded by my program)Does anyone have any idea what could cause this? I am not sure if this is a scheduling bug or a bug in my program (the likelier case).I have a wealth of logs to look through if anyone can suggest something specific to look for.

View 4 Replies View Related

Fedora :: Making A Shortcut That Executes A Couple Commands At Once ?

Jul 14, 2011

I want to use a desktop icon shortcut that essentially does this...

Is there a way I can do this? I don't really want to create an alias because I just want it to be an icon I double click to do all of this. But if I have to create an alias in which it does these ocmmands then I use the shortcut to terminal... then it types the alias that is fine also.

View 1 Replies View Related

OpenSUSE :: Make A Shortcut In A Desktop That Executes A Program?

Nov 12, 2010

even though this is a simple task I always have problems to do this.I want to execute the following#!/bin/bashjava -jar JabRef-2.6.jaror in other words this is the command I use in konsole to make the application to launch.Then usully I try to create a desktop in the icon either by using a. create link to locationorb. create link to application.where I select as file the file myfile.sh that contains the two lines of code I posted above (see again below)
"#!/bin/bashjava -jar JabRef-2.6.jar"I do this file executable by using the chmod +x.Sometimes I think this works while others like now I only receive the cursor bouncing for sometime before it dissapears

View 4 Replies View Related

Ubuntu :: Script Executes Manually / Won't Execute With Cron

Jul 21, 2011

I've written a script that restarts the server of a game I play, giving you a 15 second notice. If I manually start this script, it works fine. invalid option say Server is restarting in 15 seconds-ne and it says this for every line in the rest of the script (substituting the correct phrases of course, but always starting at the "say" and ending with the "-ne")

View 9 Replies View Related

General :: Terminal Executes Mi Script To Create Vector

Dec 6, 2010

I am trying to create a script that creates a vector and displays it. I used the command inivec but it didn't work.

[code]...

How do I make it so the terminal executes mi script to create a vector. I know MV is the name and the output should be aa aa aa, but nothing?

View 3 Replies View Related

General :: How To Create Multiple Children Before Any Child Executes

Aug 27, 2010

Iv got an assignment to complete and I'm stuck at the basic level.

A part of the assigned problem is :

The main process will read the file, and will create N number of child processes (Where N is taken as input) as early as possible before all the children starts its execution. Before creation of each child, the main process should read the file to store all the required data in then corresponding data structure. Child processes should not read the file for getting their information.

As far as my knowledge about this , the child executes before the parent. How do I make the parent not pass the control to it's children before it finishes creating all the children?

View 3 Replies View Related

General :: Unix Script That Executes Sql Query In A While Loop?

Jan 8, 2011

I have a logfile which looks like:

tableabc 1786rows
tabledfg 8374rows
tablefhd 726rows

[code].......

Now i have to writ a script which takes this log as input and quesries the DB for each table. So,I want to: input the logfile
start a while loop.So,while read LINE This variable LINE would store the table name by CUT using a delimiter once the table name is ready it makes a connection to DB and queries the table for its rowcount writes the rowcount to an O/P file.

View 3 Replies View Related

Programming :: Script Which Logs Into Devices Over Ssh And Executes Commands?

Mar 23, 2010

I would like to make a script, where I specify my Cisco devices IP addresses as arguments to the script and then this script automatically logs into every one of them and does "show version" and "exit" in every Cisco device. I have public/private key authentication system with my Cisco devices- thats why I'm using ssh-agent and ssh-add. I did something like this:

Code:

#!/bin/bash
if [ -z $1 ]; then
echo USAGE:
echo "$0 IP1 IP2 IP3 IPn"

[code].......

However, it logs nicely into the first device(I'm able to execute IOS commands in this first Cisco device etc) and then does nothing further.

View 1 Replies View Related

Ubuntu :: Daemon That Executes Commands Based On Input Device In Use?

Jan 28, 2011

I have a computer with a trackpad and a touchscreen. I want to run unclutter if I use the touchscreen, and kill it when I use the trackpad or a USB mouse.

The I'm pretty sure the touchscreen is /dev/input/mouse0, and the trackpad is /dev/input/mouse1

I have a general idea of how this should work, but no idea what tools and commands to use to implement it.

View 1 Replies View Related

Ubuntu :: Part Of Boot Process Executes Just Before Login Screen?

Apr 12, 2011

In Ubuntu 10.10 I want to have a shell script execute on bootup after everything else is done, *just* before the computer gets to and sits at the login screen. I find this easy in CentOS/Red Hat. If I place my scripts in /etc/inittab near the end, right after the mingettys, that is PERFECT. But Ubuntu has no /etc/inittab and I have spent the past few days going over and over and OVER more info about Upstart and the rcX scripts and I can't seem to get it. Anything I place in an rcX script runs too late, only after the machine is past the login screen i.e. a human must log in first. And I would rather not have to enable auto-login. I've heard that Ubuntu will honor an /etc/inittab file if you create one, and it does, but that too runs too late, only after a human has logged in. Can anyone tell me where a script should be placed in Ubuntu to execute after all system initialization is done, but before human interaction is required?

View 3 Replies View Related

Ubuntu Multimedia :: Scheduled TV Recording ?

Apr 3, 2010

I use Kaffeine to record live TV to disk for later playback. I've been putting up with Kaffeine's little foibles for the last little while, but tonight (for the second night in a row) I accidentally closed it and consequently it didn't record anything.

Is there any software I can use to construct a recording schedule which will then not be dependent on me remembering to leave a particular app running? I don't really need this in MPEG4 or anything. The PC stays on 24x7 - I just need it to launch a recording at the correct time.

I've avoided MythTV in all it's incarnations because I want the computer to still function as a normal PC most of the time, and from my admittedly brief trial of MythTV it took over the PC and wouldn't let me open a web browser or a mail client.

View 5 Replies View Related







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