From: Daniel P. <da...@ri...> - 2004-09-27 10:01:36
|
On 27 Sep 2004, Torsten Sadowski wrote: > Hi, > I'm trying to use a little script along the lines of "How can client > access as root be avoided?": > > #!/bin/sh -f > exec /bin/tar -c $* > > The problem is that the command line is already expanded for the > script which leads to problems for incremental backups as > "--newer=2004-09-24\ 00:00:00" turns into "--newer=2004-09-24 > 00:00:00" which makes tar looking for the non existing file 00:00:00. > Is there any possibility to fix this? Using bash, that should read: exec /bin/tar -c "$@" You may be able to find a suitable way of expanding those parameters that keeps them "quoted" for you shell, or moving to bash. Daniel -- There is eloquence in screaming. -- Patrick Jones |