hi all,

iam trying to automate build tasks in scratchbox using cronjob.. i write a
script which has commands to enter scratchbox, create directory, checkout
and build and i add this script to cronjob.

If i run the script from command line it works fine, however if i give it to
cronjob it creates directories on the desktop and not in the scratchbox and
fails.

test.sh

#!/bin/bash
bash << NEWSHELL #run the commands after scratchbox in the same shell
scratchbox
mkdir build-`date +%d_%m_%Y`
# checkout...build..

if i run the above script explicitly, it works fine..
however if i put in a cronjob, the directory is created on the desktop
and not inside scratchbox..

my crontab has
* * * * * /home/azingo/test.sh

above script can show the problem. please advise how to overcome this or any
pointers to existing cronjob tasks inside scrathbox

thanks,
Zaheer
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to