Ubuntu :: Change The Default Path For Any Or All Of The Different Crontab Files?
Nov 16, 2010
Can I change the default path for any or all of the different crontab files?
Can they be changed independently? for example can the user mark get one path for cron jobs, Lynn get another, and root get yet a third, or are they always going to be the same?
How do I change them?
Hello fellow Linux users:
I know there are several crontab files on my computer. One each for each user, and it looks like one for root, maybe others?
I think there is only one cron handler that reads all the different crontab files and does what it is told.
If I do from my command line, I get:
Code:
mark@server:~$echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
If I schedule a similar command in my own crontab file by using
Code:
mark@server:~$crontab -e
with the following line:
[Code].....
View 2 Replies
ADVERTISEMENT
Jun 27, 2010
I'm trying to make a reference to a second hard drive that is not part of the main file system, so I changed all the references to /var/www to /media/HD1/www and I have set the permissions on the entire hard drive to allow reading, and I still get a 403 forbidden error when I attempt to access my site, everything works when I just use the default path. I'm using Ubuntu 10.04 with apache2 installed through the package manager...
View 2 Replies
View Related
Jan 3, 2011
I want to change the default path for logs in Jboss running on Fedora box? How to do the same?
View 1 Replies
View Related
May 26, 2011
I am having a big problem trying to allow PHP to scan files, using clamav libs in PHP.
I downloaded the relevant files from:[url]
Anyways I am stuck on the tutorial for installing it in the 'INSTALL' file, where it says to run the command:
Quote:
It runs for a duration but then halts on the following error:
Quote:
It suggests that 'configure:3465' that the files where not found going by the line above that.
Not being in the default path, does anyone know where to make libclamav work?
An easier way of locating such files that it's looking for?
View 8 Replies
View Related
Jun 2, 2010
I compile the c,c++ programs using gcc compiler in ubuntu.And i am using geditor to write a program.when i open a new gedit text file to write a program,by default it is opened in my home directory.but i want to save my all programs in another drive..But i dont know how to change the path ,so that new gedit file open and save in that particular drive or folder where i want it.
View 1 Replies
View Related
Apr 1, 2010
I have and entry in a crontab for my user (appadmin) that when it executes it does not start with the proper path. It needs to start as the appadmin user as appadmin owns all the directories for glassfish. However, once glassfish restarts, the hudson application cannot find the default JDK. I get an error. If I initiate the restart via command line, all works as it should. I believe it has something to do with PATH in the crontab but am not sure what I need to set the PATH to in crontab.
View 1 Replies
View Related
Sep 14, 2009
I have a path c:windowsackup I need this string to be changed into /windows/back/up I used the command -bash-3.00$ echo windackup | sed 's/\//g' but the output is windbackup
View 7 Replies
View Related
May 31, 2011
Current script:-
prefix=user@my-server:
find . -depth -type d -name .git -printf '%h�' | while read -d "" path ; do (
cd "$path" || exit $?
[code]....
How shall i go about changing the absolute path to relative path, so that /home/git/mirror/android/adb/ndk.git gets converted to /mirror/android/adb/ndk.git //echo <command> "$prefix$PWD.git" ?? - anything for relative path?
View 7 Replies
View Related
Apr 2, 2011
i want to change the default format of open office files permanently. Like if i save a file it saves as .odt i want to change it to .doc
View 4 Replies
View Related
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
Jan 19, 2011
I'm new to Debian. I've read the documentation on this but it is too heavy for a new user to understand. I would like to change the default permissions for newly created files/directories.
I want all newly created files by 'user1' to have the default permissions of:
1. "owner can read and write"
2. "group can read and write"
3. "other can read only"
Permission 1 and 3 are already default. But I would like number 2 to be default as well. (the current default for group is read only).
View 9 Replies
View Related
May 6, 2010
I am using emacs+auctex for latex editing now, I want to change the default viewer for dvi files, since xdvi doesn't render correctly most of my documents; okular works perfectly, though I cannot make it the default viewer I went into the AUCTex manual, and there is a tex-view-program list that should contain the list of viewers, but I cannot find the way to customize that variable.
View 6 Replies
View Related
Aug 31, 2011
What files or programs have the ability to change your default network scripts and config files? All 3 of these very important files got changed on their own.
/etc/sysconfig/network-scripts/ifcfg-wlan0
/etc/sysconfig/networking/devices/ifcfg-wlan0
/etc/sysconfig/networking/profiles/default/ifcfg-wlan0
View 5 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
Jul 10, 2011
I'm running Ubuntu Server 11.04 with OpenSSH, trying to create an ssh tunnel (for web traffic) to it from my (also Ubuntu) laptop. This is the command I'm using to create the tunnel:
Code: ssh -ND localhost:8080 george@192.168.1.20 I had it all working on a virtual machine.. which was deleted What settings/lines do I need to change/add from the default OpenSSH config files to get tunnelling to work? I've Googled and AllowTcpForwarding is set to yes, as is X11Forwarding.. but it still doesn't work. Chrome can connect to the server, but says the connection was closed before any data was sent.
View 3 Replies
View Related
Jun 28, 2011
Open a new terminal either in tab or new windows,The default work directory is $HOMEDoes anyone know how to change it to `pwd`, so every time a new terminal starts form the same path as the mother terminal (the terminal user calls new from).
View 9 Replies
View Related
Jul 9, 2011
I am not an expert when it comes to crontabs and linux but i can survive in its world :P I've modified a script i found on the net to do a simple crontab job. Basically its a backup script (backup_auto.sh) that in the end of it, it updates the crontab also.
Code:
i just put the crontab job of the script....
if [ $CRONJOB -eq 1 ]
then
#Check if user can use crontab
[Code]...
I know for a fact that it doesnt run it because this .sh upload remotely some files for backup, and if i dont run it manually then i dont see any backups on the remote server
View 3 Replies
View Related
Aug 24, 2010
that If I am fire a crontab which is running myScriptThe crontab is runningNow if I change the source code of myScriptDo I need to restart the crontab, to take into effect mychanges Ie I want in the existing crontab to take my updated script
View 2 Replies
View Related
Sep 12, 2010
How is it possible to change the default text that is displayed on the default BASH logon (attached)?
View 1 Replies
View Related
Jul 4, 2010
I have my server setup so I have to create the user account and directory structure for a domain, add the domain to the httpd.conf file, but then I can create subdomains by adding a folder.
This is my config:
Code:
<VirtualHost *:80>
ServerName brandonwamboldt.ca
ServerAlias www.brandonwamboldt.ca brandonwamboldt.com www.brandonwamboldt.com
[Code].....
View 1 Replies
View Related
Jan 18, 2011
Some idiot (namely me) managed to overwrite the default $PATH variable for a Debian box of mine. I think I've successfully recreated it:
[Code]..
View 2 Replies
View Related
Dec 30, 2009
I installed "jdk1.6.0.bin" and "jre1.6.0.bin" successfully. But I don't know where they are installed. I can't find anywhere. What is the default path they are installed.I want to set JAVA_HOME.
View 1 Replies
View Related
Jul 19, 2010
I am trying to replace the default path in a file(which is a script)with the new path which I have get when the bash script runsThe code is
SCRIPT=$(readlink -f $0)
SCRIPTPATH=`dirname $SCRIPT`
sed -i "s/$HomeDir/$SCRIPTPATH/g" <filename>
[code]....
View 4 Replies
View Related
Jul 28, 2010
I would like to make a crontab task to email a log file to me every night.
How would i do this? I know how to make crontab jobs (and sett the time on them), i just dont know the command i would write for this particular job.
View 1 Replies
View Related
Jun 15, 2011
I've just built gcc 4.6.0 by myself since there is no update in Mandriva yet and I really needed the updated version, but I must be missing something in its configuration. I added ~/apps/gcc460/bin in front of my PATH, and the lib dir to my LD_LIBRARY_PATH in my .bash_profile, like so:
Code:
PATH=$HOME/apps/gcc460/bin:$PATH:$HOME/apps/bin
LD_LIBRARY_PATH=/home/duckz/apps/intel/composerxe-2011.4.191/lib/intel64/:/home/duckz/apps/gcc460/lib/
LD_RUN_PATH=/home/duckz/apps/intel/composerxe-2011.4.191/lib/intel64/:/home/duckz/apps/gcc460/lib/
export PATH
export LD_LIBRARY_PATH
export LD_RUN_PATH
I still have gcc 4.4.2 installed, but it's now hidden, so gcc --version correctly yields 4.6.0. I finally tried to build my project, all went fine, but at the moment of running it I get:
Code:
./EugGame.Release.Linux: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./EugGame.Release.Linux)
I assume the correct version is the one located in ~/apps/gcc460/lib, but how do I make my project load the correct lib? Is it possible at all to have two versions of gcc on the same machine? I just found that I should've added lib64 to my LD_LIBRARY_PATH instead of lib. Anyways, even if the problem is solved, I'd like to hear if my configuration is well made or if I should leave LD_LIBRARY_PATH unset and use some other way to override the default search path for stdlib.
View 1 Replies
View Related
Jun 25, 2009
I'm running a server with CentOS 5 where the software that needs to run on the server uses ifconfig to verify the system IPv4.The problem is that /sbin isn't set for the user that is supposed to run the software (sadmin) which means the software can't execute ifconfig and thus terminates.now the workaround I've been using is simply to input.
View 10 Replies
View Related
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
Nov 16, 2009
Is there a way to view all the crontab files, owned by root, users, and other system accounts, that exist on a system simultaneously rather than having to go the individual accounts? The distribution in question here is the Debian 4.0 release.
View 2 Replies
View Related
Apr 11, 2011
This is a quick one, I don't have any problems yet, I just want to check that this is going to do what I think it is. I added the line
Code:
00 01 * * * rsync -avz --delete /local-storage /mnt/usbackup
to my crontab file, am I to understand that this will backup /local-storage to my external
[code]...
View 4 Replies
View Related
May 31, 2011
I have a dual boot Win 7 and Ubuntu 11.04 I just started setting up - and know almost nothing about Linux - I have all my data on separate drives from my OS drives, and would like to "arrive" at my "My Documents" file when i choose "Documents" in Ubuntu.
The location of "My Documents" is - /media/New Volume/My Documents (which I found by dragging the folder onto the terminal) not quite sure how to put in the right command - something like ln -s /media/New Volume/My Documents ~Documents - (but that isn't right and didn't work).I also want to do the same with Music, Pictures and Videos.
View 3 Replies
View Related