[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Startup scripts (problem again)



On Thu, 2002-03-14 at 15:40, fjrg_cesinel@xxxxxxx.com wrote:
> Jonas,
> 
>    It works if I do manually this:
> 
> cp -R /mnt/flash/html/* /var/tmp/
> 
> but it doen't when included in a script. The section of inittab that contains the added lines is:
> ------------------------------------
> # -n means no daemon
> inetd:3:once:/sbin/inetd -n
> 
> # dnrd:3:once:/bin/dnrd -i eth0
> 
> ##############################
> # Ficheros aņadidos por PACO #
> ##############################
> #Creamos directorios y copiamos los ficheros
> myid:3:wait:/bin/cp -R /mnt/flash/html/* /var/tmp/

You cannot use * in inittab because init doesn't do that kind of
substitution. Either copy the entire tree (/mnt/flash/html/) or use the
shell (/bin/sh -c "cp -R ....").

/Jonas