wow, i feel really stupid, i just posted this same question againi post on
so many forums/lists i got confused so i'm really sorry for the double post
anyways, you mean cron can't use $USER but it can use $LOGNAME
ok, i will change this and see if it helps
--
This message posted from openso
On 1/31/2010 12:53 PM, Thomas Burgess wrote:
I am currious...is there a reason why pgrep wouldn't work as i'd expect on
opensolars?
#!/bin/sh
PATH=/bin:/usr/bin:/usr/sbin
SERVICE='rsync'
REMOTE='wonsl...@xxx..xxx:/home/xx/x/'
LOCAL='/tank/nas/dump/'
LOG='/export/home/wonslung/log/rs
> For instance, i have a script which i use to check if
> rsync is running, if it isn't running, then it will
> rsync, if it is, then it should skip rsync. I put
> this in crontab for every 15 minutes.
>
> On FreeBSD this works fine, on OpenSolaris it doesn't
> seem to be working.
>
> any idea w
I am currious...is there a reason why pgrep wouldn't work as i'd expect on
opensolars?
I come from FreeBSD and i usually use pgrep to check if a process is running
for a script.
For instance, i have a script which i use to check if rsync is running, if it
isn't running, then it will rsync, if