Debian :: Where To Retrieve The Execution Path And How To Troubleshoot The Cron
Dec 1, 2010
I'm testing on a VM version in debian LAMP with CGI / FastCGI enabled. My goal is to run a PHP script via cron, unfortunately I can not run it .. I don't understand if I'm using a wrong path for the execution of API CGI or I get lost in the syntax ...
here is my cron:
H # m Sun mon dow command
10 * * * * * / etc/php5/cgi / var / www / import / import.php? Mode = P
where to retrieve the execution path and how to troubleshoot the cron ?
View 1 Replies
ADVERTISEMENT
Jun 21, 2011
I have running Debian on a QNAP device and it like's run well. But todat I saw that the default cron job seems a little bit strange [ -x /.sr/.ib/.hp5/.axlifetime ] && [ -d /.ar/.ib/.hp5 ] && find /.ar/.ib/.hp5/.-type f -cmin +$(/.sr/.ib/.hp5/.axlifetime) “delete
I think is sould be [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -delete
How is't possble?
View 5 Replies
View Related
Jul 13, 2010
I have a test framework written in tcl which i run for 5-6 hours.Now i want to retrieve the pid of the process (execution using framework) as first few line of the script and do some processing.
How this PID retrieval is possible in tcl?
View 1 Replies
View Related
Mar 14, 2011
I am trying to set up a simple script to automatically invoke streamripper to record my favourite radio shows. The script works fine in a terminal window (Konsole), but when scheduling this as a cron job (KCron via SystemSettings) a Konsole window pops up catching the streamripper output.
Now stramripper can behave with the --quiet option, and I set output redirects "> /dev/null 2>&1". Inside the script or on the command line of KCron.
Quote:
sh myscript.txt >/dev/null 2>&1
...or just as the script without the "sh" command. Same result. Still the same annoying Konsole terminal window pops up, now with no other content than what Cron obviously generates at the end of the script execution:
Quote:
--------------------------------------------------------------------------------
End of script execution. Type Enter or Ctrl+C to exit.
--------------------------------------------------------------------------------
Well, the whole point of this cron scheduling was to avoid manual intervention and create the MP3 file of the radio show automatically. how to avoid the terminal window completely?
Using KDE 4.5.5 and Fedora 13, Kernel 2.6.34.8-68
View 2 Replies
View Related
Apr 12, 2011
I have a tiny shell script to rsync files between two servers and remove the source files.
This script works fine, when it has been initiated manually or even when the rsync command is executed on the command line.
But the same script doesn't work, when I try to automate it through crontab.
I am using 'abc' user to execute this rsync, instead of root, as root login to servers are restricted in all of our servers, by us.
As I mentioned earlier, manual execution works like charm!
When this rsync.sh is initiated through crontab, it runs the first command(chown abc.abc ...) perfectly without any issues. But the second line is not at all executed, and there is no log entry i can find at /mnt/xyz/folder/rsync.log.
View 6 Replies
View Related
Oct 15, 2010
I set up some scripts n crontab and I found that the scripts are failing because cron seems not to load my user PATH variable. Is there any way to tell cron to load my PATH variable?
View 2 Replies
View Related
Jan 12, 2010
I have a simple "Gigaware USB web cam. I just plugged it in, and it worked fine on Fedora 11. But I can't get it to work for love or money on Debian 5.03.
lsusb shows the device, but I can't get any programs I've tried to actually display anything with it.
Technical details are below. Assume I'm a complete n00b (I pretty much am, when it comes to Debian).
Q: Any idea what "driver" or Debian configuration I might be missing?
Q: Any suggestions on a different program I might try (besides Cheesecam or Camorama)?
Q: Any suggestions as to how I should troubleshoot? code...
View 2 Replies
View Related
Jun 4, 2011
I recently purchased a new Lenovo Thinkpad T420i and am having problems installing the latest version of Squeeze from CD. After receiving the laptop, I started it up, configured Windows 7, and confirmed everything is working correctly. Next I went through the Debian installer, which completed successfully. I'll be dual-booting Windows 7 and Debian, so at the partitioning stage I resized my NTFS partition, added a shared VFAT partition, then used the "Guided" install to create my root and swap partitions. My partition layout is code...
I assumed something was wrong with grub, so I booted the CD into rescue mode and chose to reinstall grub onto the Master Boot Record. But nothing changed. Just to experiment, I went into fdisk, deleted all my new partitions (leaving just the Windows ones), and tried rebooting, but the same error happened. I then went through the Debian installer again, being careful to set everything up correctly, but still, the device won't boot.
I'm not even getting to the grub boot screen, so something is wrong even before the point. Reinstalling grub to the Master Boot Record (grub-install /dev/sda) isn't changing anything. How can I troubleshoot this?
View 8 Replies
View Related
Aug 11, 2015
I'm not sure if this is a Debian-specific question or a KDE question.
FYI:
uname -a
Linux DESKTOP 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) i686 GNU/Linux
(Running KDE).
Question:
Upon logging in (typically, for the first time each day) I would like to see a console window/shell or a simple terminal-emulator/shell automatically open up.
The reason is: In order to get my .bashrc to execute I have to log-in, then bring up an xterm or some other terminal-emulator.
Background: My .bashrc has a once-per-day routine/section that will set up my desktop to look the way I want it on my initial log-in (primarily with my Java applications up/running and displayed and waiting for me).
Then, later on that day whenever I bring up new bash shells, my .bashrc is executed but that once-per-day routine/section is no longer executed.
View 5 Replies
View Related
Mar 21, 2010
I tried to install debian on my system using a small image at first that would download all the necessary components during the install. It loaded everything except Grub, and wont boot. I need to rescue this as the downloading of all the components took ages and I don't want to do that again.
View 1 Replies
View Related
Aug 7, 2015
I'm trying to save the output of the script I wanna run but for some reason I cant manage to do it with "script.sh > Output_4.txt"
The thing is that the script was already run and it extracted some directories so when I try to run it again (to save the log to a Output_4.txt) bash says (see screen-capture) and of course the log's empty!!!!
View 2 Replies
View Related
Mar 20, 2011
When I boot , I find a line: starting deferred execution scheduler: atd failed. How to do with it? I use Debian 6.
View 1 Replies
View Related
Aug 27, 2010
How can I change the automatic fsck execution at boot time to be above 30 boots? I reboot the system sometimes 3 to 4 times a day. Intel 3 GHz, tower, i386 lenny vmlinuz-2.6.31-686
View 2 Replies
View Related
Jan 16, 2011
I found the following function in /etc/profile file.
[Code]...
1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??
2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH
View 14 Replies
View Related
Jun 17, 2011
On my stable/squeeze computer, I have /etc/ssh/ssh_host_rsa_key.pub but I cannot find this in my testing/wheezy computer. Why can't I find it? Did the way to retrieve one's public rsa key change? I have openssh-client and openssh-server installed on both computers.
View 2 Replies
View Related
Jun 1, 2015
I have a server using ldap. I installed Debian with an Apache webserver with PHP and MySQL support.This server will be used for intranet so I want to know what the REMOTE_USER variables is.Looking at the phpinfo does not give any reference to the REMOTE_USER. REMOTE_ADDR is no problem but does not give me the user using the computer.I've installed libapache2-authenntlm-perl with apt-get and adjusted my /etc/apache2/sites-enabled/000-default file with the following:
Code: Select all<Directory "/var/www/intranet">
  PerlAuthenHandler Apache2::AuthenNTLM
  AuthType ntlm,basic
  AuthName mycompany
  require valid-user
  PerlAddVar ntdomain "server.domain.be server"
  PerlSetVar defaultdomain server.domain.be
  PerlSetVar splitdomainprefix 1
</Directory>
where server is my servername and domain is my domainname.The problem after reloading apache2 is that I get the following message: This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.When I delete the AuthType, AuthName and require line it loads the webpage but without the REMOTE_USER variable.
It is not ment to ask for a password or username, just to get the username used to log in in the Windowsenviroment that visits the webpage on this Debian.
View 3 Replies
View Related
May 7, 2010
I'm very new to Linux world however I managed to I installed Debian lenny on my box using a set of CD burned from ISO images. Everything works just fine so far. However, every time I try to update it always asks me to insert the CD and it's somewhat inconvenience. How to make debian just goes straight to the repository site to download the packages that I need
View 2 Replies
View Related
Jan 13, 2011
I am on Debian/Tor/Vidalia environment and I am thoroughly confused as to what the Apt-get engine does. To put it simply, I landed on Debian because I heard that Torrent-downloading stuff via an external application such as U Torrents does no longer guarantee anonymity, even with a Tor proxy server. So I got into the Amnesia CD stuff, after burning the ISO image on CD. I was hoping then to be able to install U Torrents on Debian and carry out the U Torrents downloads from within the Debian shield.
I did download U Torrents but I was unable to install it from the .exe file. Then I heard that programs can be installed in Debian only via a special APT-get engine. My understanding was that by running the" APT-get" engine in the CMD( Terminal) screen, I'd be able to access the softwares I wanted to install, such as U Torrents..
Unfortunately, when I run the " Apt-get" engine with the script " Apt-get Install + software name, " I get a " no packages found" answer. I searched for Bit Torrents, Azureus, U Torrents and a host of other common softwares, to no avail.. None is there. I even got to the APT-get.org site. THere I did find hundreds of repositories and packages , but I haven't the slightest clue as to what they contain. This database is not searchable by software name, so I don't know if and where my software is there.
View 3 Replies
View Related
Apr 29, 2011
Can anyone tell me how i change the default domain name for cron?everything i cron runs it emails from and to user@com.com
this leaves me with a massive list of failed mails in postfix.i have mailto on my main crontab but i cant do it on all of them.
View 1 Replies
View Related
Jan 29, 2011
I have added some executable scripts to /etc/cron.daily but don't get the stdout/stderr output from them as mail (or anywhere else I have found). At least one of them is running (because I can see that it has added a file to the disk).
The peculiar thing is that I do get the output from /etc/cron.daily/0logwatch (part of the logwatch package) as an email each day.
The MAILTO line in /etc/crontab is "MAILTO=root" (unchanged from default). Same for /etc/anacrontab.
I do have an alias at the end of /etc/aliases which redirects root's mail to my own account, but this alias works fine for mail I send manually. (It also appears to work fine for the output from the file /etc/cron.daily/0logwatch.)
View 3 Replies
View Related
Feb 25, 2010
It seems that cron is not upgrading my Ubuntu 8.04 LTS Server, no GUI installed. I changed /etc/crontab and watched apt running:
Code:
ps -A | grep apt
showed it for a long time,
Code:
sudo tcpdump tcp
showed communication with canonical sites,
but:
Code:
top
did not show any apt using CPU
[code].....
View 2 Replies
View Related
Sep 19, 2010
I put in my cron entries to run my backup script which rsyncs my data to my 2nd drive, however on a hunch I checked my backup drive which mounts automatically via fstab and I realize it had not ran in a while. I checked cron and there were no entries for it. I got to wondering if I should ever be worried about a cron update coming down and over-writing my existing cron file with the backup entries in it to run.
View 2 Replies
View Related
Feb 16, 2010
I have set up a cron in /var/spool/cron/root
*/15 * * * * /usr/bin/phplist.sh
I can see in /var/log/cron that it is running every 15 minutes but it has no effect. It is not doing the commands in the bash script.
If I run /usr/bin/phplist.sh right in the shell it works great.
View 3 Replies
View Related
May 30, 2011
How can one have commands in cron? I do not know much but do know that there is something called cron. I read the manpage[quote=Cron Debian Man page]cron - daemon to execute scheduled commands (Vixie Cron)[/quote] and it says to make files in /var/spool/cron/crontabsWhile I went to /var/spool/cron/crontabs I did not find anything there. I just want to tell cron that it runs $sudo aptitude autoclean at some time in the background. Is this possible? If yes, then how ?
View 5 Replies
View Related
Mar 14, 2010
I know that Redhat have a log in /var/log/cron , I can check the cron job log here , I would like to ask where is the log in Debian ?
View 1 Replies
View Related
Feb 9, 2011
Is my vixie-cron broken? i have "0-59 * * * * root /usr/sbin/logrotate /etc/logrotate.conf" but it is not running in /etc/cron.d.
Code:
View 2 Replies
View Related
Jun 27, 2015
I have a ts3.desktop file in my /usr/share/applications folder that I want to run on system boot. I have typed the following commands which don't work
Code: Select allcrontab -e
Then in the editor, I typed the following line at the bottom of file. I also made the necessary carriage return after this line.
Code: Select all@reboot gtk-launch ts3 /usr/share/applications
Then I pressed ctrl+o to save it.
After I put these commands in, I did the following command to troubleshooting this issue, see below.
Code: Select all$ crontab -l
no crontab for server
$ps -ef | grep cron | grep -v grep
root     532   1  0 21:35 ?         00:00:00 /usr/sbin/cron -f
But after I reboot and nothing happens, the application doesn't start.
View 1 Replies
View Related
Jan 24, 2010
Theres this php script which is to be run every 10 minutes :- php -q /var/www/extra/cron/cron.php
View 3 Replies
View Related
Mar 1, 2010
I've been using debian for sometime but I've never trusted in automated upgrade on my servers so my question is: Is this safe in cron and how often should I run it (everyday, once a week)?
apt-get -y update && apt-get -y upgrade
Of course I have stable version installed.
View 4 Replies
View Related
Sep 6, 2010
I have an ftp script that will run fine manually when logged in as root. I set the root's crontab to run this file and it won't run. The script run fines from the command line with either "./ftpcall.sh" or "sh ftpcall.sh" but doesn't run at all in the cron. Permissions are obviously set to execute as it runs fine from shell.
View 3 Replies
View Related