General :: Purpose Of /etc/crontab File?

Jun 7, 2010

I attempted to run various cron jobs as root - just general server make-tidy stuff. But if I edit the /etc/crontab file directly, these tasks don't get run. However, if I use crontab -e as root, these jobs appear to work. Any idea why this might be the case? Also, I understand that user cron jobs are stored in /var/spool/cron/<user> (including root). If this is the case, what's the purpose of the /etc/crontab file?

View 5 Replies


ADVERTISEMENT

General :: Crontab Not Working \ Edited Crontab File Using Crontab -e?

Apr 27, 2010

I am using Linux 64 bit Redhat Linux. I am trying to setup simple crontab as follow...1. Edited crontab file using crontab -e2. Listed the file once to verify it using crontab -l. This will display as.. 18 5 * * 2-3 ksh $HOME/testScript.sh > $HOME/testscript.out3. Logged in a root and restarted cron deamon using "/etc/init.d/crond restart"As per my understanding now my testScript should start running at 5:18 am Thuesday

View 3 Replies View Related

General :: What Is The Purpose Of Using Hard Links Instead Of Being A Shortcut To Some File

Mar 23, 2011

what is the purpose of using hard links instead of being a shortcut to some file ?

View 5 Replies View Related

Software :: Scheduling Backup In Crontab When Put This File In Crontab To Schedule The Backup Program It Wont Run?

Apr 9, 2011

I have installed an application manager(monitoring application) on my linux server. Now, i need to have backup schedule for my application. The application itself has executive file to backup database.But when i put this file in my crontab to schedule the backup program it wont run!50 09 * * * root /opt/ME/AppManager9/bin/BackupMysqlDB.sh

View 1 Replies View Related

General :: Possible Disabling Crontab Job Without Deleting Crontab Description Entry

Jun 23, 2011

is it possible disabling a crontab job without deleting the crontab description entry (by crontab -e)?I could also accept to change the entry itself. Now it's:0 0 * * 0-6 /home/me/cron/script.csh

View 4 Replies View Related

General :: Do Scheduling Using /etc/crontab File?

Feb 11, 2011

i want to do scheduling using /etc/crontab file instead of using crontab -e that is crontab command on the terminal.i am appending to the crontab file in the /etc directory but the scheduling is not happening

View 7 Replies View Related

General :: Create A Crontab That Renames A File?

Oct 8, 2010

I've tried to create a crontab that renames a fil extension every minute. This is what I've tried:*/1 * * * * / rename /home/bodil/Avräkningsfiler/'s/.txt/dat/' *.txtBut it doesn't seem to work.I've also tried to create a .sh file in the catalog itself with the command executing directly in the catalog but even though running the command by typing it in, it doesn't run automatically by cron

View 10 Replies View Related

General :: E-Mailing Whole Output Of A File With Crontab

May 3, 2011

I have this code that is 'bashed' regularly with crontab and basically it will send me an E-Mail of most of the output but it misses out some of it!

Here is the crontab code to automatically run the script:

Code:

So that sends me an E-mail with most of the output of the following code:

Code:

It sends me everything up to echo "*******" "Begin compressing and transferring files" "*******" but it wont output the tar bit.. so it should give me a list of files that have been tarred.

View 1 Replies View Related

General :: Cron / Crontab - Do Not Edit This File

Mar 19, 2011

I am trying to have the files from /user/directory copy every hour to /backup/user/directory. It would seem that cron or crontab is what I need to use. Looking at previous posts and other documentation only shows how much I don't know. When I type crontab -e I get a blank file I can type into, seemingly using vi as the editor. I have no problem with that but when I type cron -l, I get my text after a message about "Do Not Edit this File". What I am reading just makes no sense, I am not understanding even the most fundamental aspects of cron or crontab. Where I can get the most basic of basic instructions to try to understand this function?

View 4 Replies View Related

General :: Script File Fails When Run From Crontab / Sort It?

Dec 29, 2010

Is been a while since I was last here requesting help. Now I need some of that LQ magic. I have a script file that extracts data for a date range, create a zip file for the data and then ftp it to a remote server.
Now the script is working perfectly if it is run manually, but now I want it to execute automatically. So I use the crontab, but for some reason the script fails when run from the crontab.code...

View 3 Replies View Related

General :: What Is The Purpose Of Having "/etc/shadow" File

May 15, 2010

we can save the users password in /etc/password file itself.then why a special file /etc/shadow is created to save the encripted password of users.

View 2 Replies View Related

General :: Unable To Find Directory Listed In /etc/crontab File?

Feb 10, 2011

when a script in /etc/cron.d directory will be executed?. I know that scripts in cron.daily will be executed daily [ set in /etc/crontab file]? Cant able to find this directory listed in /etc/crontab file?

View 2 Replies View Related

CentOS 5 :: Purpose Of Fs.file-max In /etc/sysctl.conf?

Jul 29, 2010

On a production Centos 5.3 system, I want to raise the hard & soft limits of open file handles from 1024 -> 8192 (not a "biggie", I'd think) Right now, "sysctl -a | grep file" shows fs.file-max=463144 (a default, I'd guess) I'm guessing file-max is the maximum number of open file handles on the system, vs the per-user limits seen with "ulimit -Hn" and "ulimit -Sn". Right? If so, I shouldn't think I'd have to touch this on a server with few users.

Also, after doing a lot of reading, I still don't understand the mentions of needing to also add: "session required pam_limits.so" to /etc/pam.d/loginor adding "session required /lib/security/$ISA/pam_limits.so" to /etc/pam.d/system-auth Maybe I've gotten off into the deep weeds in goggling about raising file handle limits.

View 1 Replies View Related

General :: What Is Purpose Of Makefile In Nis Server

Aug 17, 2010

can anybody tell the use of make file in Nis server.

View 1 Replies View Related

General :: What Is Purpose Of Bash Scripting?

May 15, 2010

What is the purpose of bash scripting? Is it just for file manipulation?

View 4 Replies View Related

General :: What's The Purpose Of A Boot Partition?

Jan 17, 2010

I've always been confused about this issue of boot partitions. In the past when I install linux I usually have 2-3 partitions.

1. Main OS partition mounted on /
2. Storage partition mounted on /home
3. Swap partition

Why and when would I need to have a boot partition? Even if I dual boot two OSs, I just make one more partition for that other OS. So what's the purpose of a boot partition?

View 5 Replies View Related

General :: Purpose Of Shebang In Scripts?

Oct 15, 2009

Can you explain me what is purpose of shebang in scripts? I have noticed that my scripts will run without shebang. i.e. When i save my crontab file it says that scripts will be executed in i.e. /bin/sh shell. So, what is the point if I put #!/bin/ksh at the start of script?

View 8 Replies View Related

Ubuntu :: What's The General Purpose Compressing Format

Jan 14, 2010

I have a folder that may contain text documents, pictures, MP3s, video clips, all sorts of stuff. Supposing that, within reason, I'm not too bothered how long it takes to compress and uncompress them. And suppose I don't care if it's free or open source (well, has to be free as in beer). What's the best compression format/algorithm (whatever it is that I install in Synaptic and choose from the drop down menu in the compression tool) I should use?

View 9 Replies View Related

Ubuntu :: Best General Purpose Language To Learn?

Jun 19, 2010

The last time I wrote code for anything was about 15 years ago using Turbo Pascal. I would like to get back into it, most likely to create some mobile apps or enhance web sites. What is the best general purpose language to learn? And what is a good method for learning, preferably free?

View 1 Replies View Related

Ubuntu :: Creating A General Purpose Switch?

Apr 19, 2011

I want to create a general switch that I can use to send a signal to my ubuntu server when it is activated/deactivated. Here's an example: I want to know when a certain door is open, so I can have a switch closed when the door is closed and opened when the door is opened. When opened or closed, the computer will receive a signal and I can have some software intercept this signal and process it to my liking (i.e. ring a bell/text message me/email me/etc).

I know I will have to create a simple driver, software to make use of this signal, etc... I am willing to do whatever it takes to make it happen. I'm just wondering if anyone can point me in the right direction as far as which interface I should use to communicate with my server (i.e. usb, serial), which references I should read, and any personal experience you have with something like this...

View 3 Replies View Related

General :: Purpose Of Libc In An Operating System?

Jun 24, 2010

What is the purpose of libc in an operating system?

Is the libc is common for all OS or it is different for different OS!?

I mean source of libc build for RH is same for Ubuntu !?

View 2 Replies View Related

General :: Logrotate - Purpose Of Rotate And Postrotate?

Jul 10, 2010

I have been trying out in learning with logrotate command and logrotate configuration file )logrotate.conf custom logfile for an process is 'test.log'

Code:

#cat /etc/logrotate.d/test
/var/log/test.log {
rotate 4

[code]....

whenever the log file (test.log) exceeds 100M a new file will be created with the file name as test.'date'.'gz'(new file is created with a current date and in a compressed format of gz) and also with permission mentioned above). I really dont know what is the role of rotate( will this be carried on only for next 4times i mean upto 400MB; (4times*file reaches 100MB)? and also what could be the purpose of postrotate?

View 5 Replies View Related

General :: What's Difference And Purpose For Console And Terminal

Sep 21, 2010

I'm confuse about different beetwen console and terminal in linux system? And what purpose them for?

View 5 Replies View Related

Ubuntu :: How To Run .sh File Using Crontab

Aug 4, 2010

I have a .sh file which i want to run using crontab at a specific time with root privilege.

I put an entry in root's crontab as the following:

sh /home/vivek/ifconfig/college.sh

But, the file do not get executed at a given time.

View 1 Replies View Related

General :: Difference Between /etc/crontab And "crontab -e"

May 29, 2011

What is the difference between the crontab located in /etc/crontab and the crontab that can be edited using crontab -e?

View 2 Replies View Related

General :: What Are Advantage Of Getting Into Single User Mode Or Its Purpose?

May 10, 2009

What good does getting into single user mode do?And what's the basic purpose of it , i.e is it maintaining purpose???

View 2 Replies View Related

General :: Editing Windows 7 Bootloader For Sharing Purpose

Oct 26, 2010

"Life has been made easier with all Microsoft systems, all versions of Dos and Windows, because each of them has to be installed in an active primary partition and so hence will always has a boot loader in the root partition." So if I already have Windows 7 installed (in a 100gig partition of a 1t hdd) how do I modify the windows booting process so that I can go on to create many additional partitions that will be used for linux distros?

View 7 Replies View Related

Ubuntu :: Can't Create A New File Using Crontab

Apr 15, 2010

A couple days ago I noticed cron stopped working and now I can't create a new file using crontab -e. When I hit crontab -e I get the editor but after saving nothing comes up under crontab -l and the file is blank when I reopen it. I don't have a cron.allow or a cron.deny.

View 4 Replies View Related

Red Hat / Fedora :: Get Mail From The Crontab Log File?

May 6, 2010

I want to get mail from the crontab log file....

How to set log file in crontab and the second and how can i get mail from the crontablog file.

View 1 Replies View Related

Fedora :: Crontab To Set A File Playing At A Certain Time?

Jun 6, 2010

I used crontab to set a file playing at a certain time, this works fine; however I want this to run even if no-one is logged in (but the computer is on). I can't get it to do this

Line is: 30 06 * * * env DISPLAY=:0.0 /usr/bin/totem /home/adunaic/Playlist.pls

Okay I think the problem was with needing a GUI.

Using this instead works, but i only hear the sound when I log in. I think something needs to be doen to start the audio perhaps?

14 17 * * * export DISPLAY=:0.0 && /usr/bin/mpg123 /home/adunaic/alarm.mp3

View 8 Replies View Related







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