Newsgroups: comp.unix.shell
From: Bit Twister <BitTwis...@mouse-potato.com>
Date: Sun, 9 Sep 2012 05:18:02 +0000 (UTC)
Local: Sun, Sep 9 2012 1:18 am
Subject: Re: crontab & gnome-schedule do not run bash script
On Sat, 8 Sep 2012 17:55:16 -0700 (PDT), Rajib Bandopadhyay wrote:
First, you may want to consider setting your Usenet application to
word wrap at about 60 characters to fall withing Usenet guidelines. That extra space gets used for the reply depth indicators.
Some subject matter experts may not bother to reply to your post/problem
> Friends, things are pretty quickly getting off my zone of
Do not worry, you are being fed information piecemeal about little
> comprehension. things that can bite you when running in cron and some information about what certain types of apps require as part of the basic setup. > Maybe a few months from now I would be in a position
Heh, heh, but by then it will seem like you know even less. :)
> to comprehend your discussion, > but presently, I am a newbie.
Well, doing a "locate bin/ | wc -l" on my Mageia Linux shows 5072 applications.
Rest assured I am pretty much a newbie also. :-D > So
If you were to read http://www.catb.org/~esr/faqs/smart-questions.html ;
> what should be my script, considering that I use Debian Squeeze > 6.0.3 main contrib non-free repos? providing distribution and release enables subject matter experts to provide more precise information/instructions. Depending on the question, would not hurt to provide your Desktop manager name (Gnome, KDE, LXDE, XFCE, Openbox, Enlightenment, Fvwm, Fluxbox, Window Maker, IceWM, Blackbox, Afterstep, .....) and if you are running a 32 bit or 64 bit install. As an example, you can compare what your interactive environment
Lots of the stuff in term.env may not be required, but that will
You may want to place environment variables in a script and source it.
Example. I have a several scripts that I source to make my script
$ cd /local/bin
My basic cron script would start out like:
#!/bin/bash
That function has the basic PATH and any other variables I consider
$ sort /local/bin/function_path_app | uniq | wc -l
What I want to show you is my PATH setting in function_path_app
What is of intrest is /usr/lib64/qt4/bin
In particular is /lib64/. That is required on 64 bit installs. On 32
How did I figure out what I needed there? you ask. It was easy. I did
Some java applications might want JAVA_HOME and CLASSPATH set.
Just for fun run this in a terminal.
env | sort | grep PATH
I do not have a Debian install handy so I can not tell you what to
Add my and those path variables you saw in tha above sort to your script.
You may want to bookmark this url
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||