Ubuntu Using /etc/crontab to force chown and chmod in specific directory

I need to actively make sure some files, in a specific directory, are chmod 750 and owned by transmission:media-daemons. Other users will save to this directory, with other permissions and UID/GID but I must make sureto reinforce this default.So I have this on my /etc/crontab:# /etc/crontab: system- ...

crontab need chmod?

I have installed cron written by Vixie Cron. After installing, the crontab worked well as user root. But, when I switch to another user named `work', there are some problems.I have added the set-uid to the program /usr/bin/crontab and made the directory /var/cron/tabs can be written and executed by ...

Ubuntu "For" loop not working in Crontab

I have a slight problem when running a script with crontab. The other parts of it run normally but, the main part of it that consists of the loop does not seem to run at all while the smaller "id" loop works.This is a script that I wrote for a computer lab running Edubuntu that is supposed ...

exec crontab, what user am i suppose to be?

I have google the snot out of this for the past hour+it boils down to making the user of the file the web user.I use function crontab_set ($min){$command = "$min * * * * /usr/bin/php /Users/vincenzo/Sites/sites/testDB.php";$cron_file = "cron/Feed_cron";$open = fopen($cron_file, ...

Ubuntu crontab permissions problems??

I have a quite plain gutsy installation and I just noticed I can't create/edit my crontab...crontab -eyelds: crontabs/baby: Permission deniedI can sudo and edit things by hand, but I don't want to...I connected to a gutsy server I've installed and it works OK...Here's how permissions are set in the ...

Ubuntu shell script writing to crontab

I'm working on an sh script that will, among other things, take some input from user and then write it into crontab.The entire script works perfectly so far except for the part where it's suppose to write to crontab; the most important part. LOLI've tested the script with a blank file I placed on my ...

Can't connect to DB2 using Crontab on AIX

I still have just a little experience in AIX and DB2, and I'm trying to do onine backup running a shell using crontab. Executing this shell at the OS prompt, it works well, but by crontab the database connection is not possible, returning the following message:SQL0332N There is no available conversi ...

I just did a "chown -R root:root /*" help

I was just installing mplayer when I tried to change the ownership of all the files in the directory but I think I screwed it up. I did "chown -R root:root /*" logged in as root, in the "/usr/local/share/mplayer/" directory and I think it started changing the ownership of the fil ...

ssa entries in crontab in default AIX install

Hi, I was wondering if someone knew the answer to this, because I couldn't find documentation about it.On a default aix 5.3 install, crontab has entries that look like this,code SSA warning : Deleting the next two lines may cause errors in redundant SSA warning : hardware to go undetected. 01 5 * * ...

crontab as root

I’ve added some cron jobs using sudo crontab -e which are not running. I’ve also tried putting a file with cron settings in /etc/cron.dalso not running yet syntax checks out, and the script can be run manually also I can’t figure out where mail for root@server would end up if its t ...

crontab <5

Can I setup crontab to run perl script every 5 seconds ?So far I entered crontab by >crontab -ebut I don't know how to save it and exit? ...

How do you use and STOP Crontab?

I need a Perl script to run every Tuesday at exactly midday. Rather than manually running it every time, I've heard that 'crontab' can be used, and have seen imformation about it here and on other web resources. However, before I attempt to use something I know nothing about, a few questions:1. I ha ...

db2admin Crontab new entry not executed

I have a question here.i have scheduled 1 script to be run very 8am.but the problem is the script not be executed.However i have tested the script manual and its working fine and generating output files.This scripts need to run as db2admin user under d2badmin crontab00 8 * * * /db2backup/CTFSCRIPT/c ...

I performed a sudo chown on the /var folder and now i can't log on to the sftp

I've got myself in a bit of a pickle.I was trying to delete the folders in a docs folder on one of our sites. Some of the files I didn’t have permission to delete.So I did a Sudo chown to my username on all the folders within /var (probably where I went wrong!)That worked okay, in terms of allowin ...

Crontab within lynx

I have the following PHP script.<?$file = "http://www.inman.com/inf/homelog/index.asp";$open = fopen($file, "r");$search = fread($open, 20000);fclose($open);$blockcode = ereg("BELOW\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* -->\n(.*)<!-- \*", $search, $urls); ...

Set CRONTAB

please help me to set a crontabI have a file named crontest.php in /var/www/crontestfile.phpI think there is no php installed, but rubyhow can I set a crontab for that file so it will be run every 4 hours everday ?what the steps to set the cron ?I have set like this 0 * * * * php "/var/www/crontest. ...

chown: module: Operation not permitted. - chown failed on aix server

we have assigned this folder 'local' to application admin. when she tries to chown to assign to her id and group, the operation not permitted as per the error shown below. why this thing happen? the current file owner and group is root:sys $ ls -la |grep localdrwxr-xr-x 2 pkiwas wasgrp 4096 May 15 1 ...

chown/chmod operation not permitted

I have some mounted drives i am trying to change the ownership on, so they can be accessed on the LAN via NFS by someone other than root, but neither the volumes nor their sub-directories can be changed. I have tried to do it both by logging in as root as well as SU my personal account. This is the ...

sudo NOEXEC crontab -e

I’m trying to restrict the use of a few tools on AIX known by its shell escapes history.I started the tests with vi, crontab, less and find.The problem is: I cannot use the command crontab -e anymore.Does anyone knows how to make it work? Is any other way to accomplish that?I would liketo allow th ...

crontab, add my user to the group

Pretty basic question. How can I add a user to the "crontab" group? My scheduled cron tasks are not running, and I presume its because my username is not attached to the crontab group. This is from my /etc/groups"crontab:x:108:" so no users are currently associated with it.Build: Ubuntu Hardy Heron ...

Ubuntu Server 10.10: chown in NFS doesn't work.

I have create a NFS server (IP: 192.168.2.3) with following export configuration at /etc/exports:/srv/cloud 192.168.2.4(rw,async,no_subtree_check,no_root_squa sh)From machine 192.168.2.4 I have following configuration in /etc/fstab:192.168.2.3:/srv/cloud /srv/cloud nfs rw,hard,intr 0 0Now from machi ...

crontab db2

I have seen this error in the db2 forum but not a finalized resolutionSQL10007N Message "-1390" could not be retrieved.here is my problem:I am using Udb 7.2 on Red Hat Linux v6.2.I created a crontab entry for my script under the db2 user.crontab entry:37 16 * * 1-5 /kal/db2inst1/db2_backup ...

Crontab AIX 5.2 not working - help urgent

I am new AIX. I have defined following entry in crontab in AIX 5.233 04 * * * /usr/bin/date >> /tmp/toto.orgroot@mumsa001204:/var/adm/cron# dateIf I check cron processps -ef|grep cronroot 31672 1 0 Oct 10 - 0:06 /usr/sbin/cron root 118572 87956 0 21:05:21 pts/0 0:00 grep cron My problem is thi ...

crontab -e Permission denied

I'm running Ubuntu LTS and when I try and run:crontab -eI get:crontabs/username: Permission deniedHow do enable crontabs for username? ...

How to find crontab jobs ?

how to know or find the number of crontab jobs ,scheduled or running in the system ?plz provide the command . ...

configuring nmon in crontab

I want to know how to configure nmon in crontab, I want to configure nmon for entire month. ...

Crontab -e doesn't work

I'm setting up a new slice (Ubuntu Gutsy) and "crontab -e" isn't working. I have an /etc/crontab file that I can edit but thats it.Any advice for setting this up properly? ...

crontab of script doesn't work but manual does

I'm trying to run a Perl script via crontab that produces the following crontab error:"Exception in thread "main" java.lang.NoClassDefFoundError: Convert"This Perl script has the following:"system ("/usr/bin/java Convert midwest_callout.csv \"Midwest Callout\" ...

crontab and grabbing headlines

I'm currently using a scripts which grabs headlines from a newssite. After a couple of adjustements in the retrieved information, the scripts stores the adjusted information in a file. This all works fine. When I call this script in my own webbrowser, there is no problem. It makes sure the new infor ...

run php script using crontab

Is there possibility to run a php script from the command line?Can I run it using crontab as well?And if it is possible how could I do it?I wrote down my script as script for www, and when I tried to run it it gave me errors like:"unexpected include on line 1"or something.If I remove the f ...

error with running a python program from crontab

I can run the prog.py (I have an extension module in C and its compile .so file is stored in the same dir as this program prog.py file) correctly at cml (that means no problem with loading my own module), then I wrote a C wrapper (also in the same dir) to start it at the crontab. My crontab line say ...

PHP Crontab Job - Won't Work

can I do a crontab job on a php file? I just tried and am having some problems. Any tips I should know about?I have done this before for perl programs.It does not seem that the file is being read by a PHP parser. I get errors around the comments "//" ... when it was embedded in my HTML the ...

Crontab Job PHP, again.

To Chris King (or any one else who might know),system did not allow me to respond to your reply after my first (erroneous response) ... so here's the follow up to the crontab job question ...I thought I had it the crontab job working, but I don't. The PHP file now runs when called, but my crontab jo ...

crontab script is not producing any output

I have created a small script to compile a network weathermap using the cacti RRD files. The script reads the *.conf files and outputs an html and a png file. When I manually run the script it works normally.I have edited my crontab with the crontab -e command to run this script every minuteThe prob ...

nmon collect does not works in crontab when user not connected

we have a P570 with linux redhat as4 partition (linux ppc)i attempt to put in root crontab a line to start at 00h00 for one day nmon collecti use nmon11b for linuxif at 00h00 root user is logged nmon process start normalyif root is not connected i can see in cron log that nmon command is startedbut ...

chown under w2k???

i just made a script with file-access and read/write support!...BUT my problem is, that i get this error message:Warning: fopen("roster.txt","r+") - Permission denied in /usr/home/admin_member.php on line 75so, i think there are 2 reasons, i get this error message:1 - i am not al ...

NMON running multiple times (from crontab) and appending to output file instead of overwriting it.

I have a question regarding long term monitoring with nmon. I have a need to monitor a machine and create a nmon file over a periode of 1 month m /var/log/nmon f perflog-$month.nmon options are nice (in a script that fills the $month var) but when I run the command from the crontab each our it o ...

Nmon Issues with running nmon from crontab

We are running nmon every 4 hours from crontab and nmon is having issues with the next nmon scheduled to run and the last nmon is still running so we see 2 nmon's running at same times. Then nmon gets confused as to which out put to write too. Has any one run into this issue?ThanksNmon parameters;$N ...

Ubuntu Question about crontab

I'm just trying to figure one thing about about crontab, I know to enable it it's crontab -e, then it asks for the editor of choice (nano, love my nano)But at that point do I put the command in? When it opens nano, do I put the command in then? or do I put a link to an .sh script in there? ...

crontab'ing a PHP script

I'm trying to figure out how to crontab a PHP file. I can't find the PHP executable (on Linux) so it must be a module. I'm guessing the crontab entry would be something like:httpd file.php > /dev/null ...

I can't get crontab running

I have a problem with my crontab. This is what it happens:I have a hosting in a server and can't use the crontab for the hosting user. I get this error: bash: crontab: command not foundAfortunately I can log in with root account. I know I can use crontab -u user_name -e to edit the crontab for that ...

Crontab problems..

Okay, here's the jist: I'm trying to run a small PHP script that will dump the contents of fourparticular MySQL tables every day at 5:00am. My solution was the placethe scripts in a directory named "crond". From there, I created a filecalled "job.file" and placed it into that sam ...

Ubuntu crontab help with picture from webcam

So I have a htpc sitting next to the tv in my living room and there is a webcam connected to it. I would like to set up a crontab entry that would take a picture with the webcam at a certain time of the day. From what I have read about cron it shouldn't be too difficult to set up but I don't know th ...

I can't get crontab running

I have a problem with my crontab. This is what it happens:I have a hosting in a server and can't use the crontab for the hosting user. I get this error: bash: crontab: command not foundAfortunately I can log in with root account. I know I can use crontab -u user_name -e to edit the crontab for that ...

SQL Stuff in a DB2 crontab not working

- I am v-e-r-y new to the DB2 environment on AIX, and have rather had this problem pushed on to myself...anyway - I can explain:I have an SQL statement that I can merrily "paste" into a DB2 command line on an AIX box:db2 "select substr(companyid,1,12) as "COMPANY", substr(lo ...

Ubuntu trying to understand crontab entry for sysstat

I'm trying to understand a crontab entry for sysstat. The entry is from /etc/cron.d/sysstat:*/10 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1What I know:*/10 * * * * - execute command every 10 minutes&& - we're executing multiple commands consecutivelydebian-sa ...

running php from crontab

I tested out a simple script run on crontab and had no luck what-so-ever. My script was just a mail() in a php file, what am I missing?TIA,Jim ...

Static PHP script fails under crontab

I'm trying to get a PHP script to work under crontab, with no joy. The script works fine when invoked from bash, but crontab won't have any of it. The crontab entry is actually executing, because I can track a bash script that calls the PHP, but there's nothing from the PHP side.I understand that th ...

Crontab and files saving Headache

First off if there is a place in the forums for this can you move i was not sure where was appropriate,I have got a Crontab that runs hourly now this is a comand to run a script as if it where opened in the browser as the script needs that(not my build, just though i would say that) But this is my C ...

crontab command help

I only entered crontab in the shell command prompt and hit enter.The screen then takes me to somewhere like editor , i didn't knew what it was and didn't knew how to exit , i just exited the shell by closing the browser.After that when i saw my cron jobs from the browser , all of my crons were delet ...