i did try exec, as far as i can tell from 'man bash' i just stick it at the beginning of the line right? not that i really understand the difference with using it, anyway there was still no sign of urpmi updating my local cooker source, it's not a huge deal since i can do it manually but a bit dispiriting that i can't even get a simple thing like this to work!
bascule On Monday 12 November 2001 11:38 pm, you wrote: > On Monday 12 November 2001 20:59 pm, bascule wrote: > > i have a little script that i run every now and then as follows: > > > > #!/bin/bash > > #this runs rsync to update the local copy of cooker > > rsync -avL --delete --delete-after > > fr2.rpmfind.net::linux/Mandrake-devel/cooker/i586/ > > /mandrake/cooker/ > /dev/null 2> /dev/null > > #this updates urpmi database > > urpmi.update "localcooker" > /dev/null 2> /dev/null > > > > the problem is that the last line works fine if pasted into a > > console, and the first line clearly works since i can see both the > > name of the script and rsync listed in ksysguard, however, urpmi > > never runs when running the script, i'm probably going to kick > > myself when i find out what i'm missing but i just can't work out > > what's wrong since the same urpmi line does work when run manually > > > > help gratefully received :-) > > > > bascule > > > > p.s. anyone wishing to confirm whether i need both --delete options > > to only delete old files 'after' syncing them-please feel free, the > > man pages for rsync weren't clear on this point > > - > Have you tried exec?, I haven't used it with urpmi but sometimes it > seems to make commands in a script work > > Regards > > pete
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
