[Previo por Fecha] [Siguiente por Fecha] [Previo por Hilo] [Siguiente por Hilo]
[Hilos de Discusión] [Fecha] [Tema] [Autor]sanchezcrs en netscape net (Carlos Sanchez Soto) wrote: >sanchezcrs en netscape net (Carlos Sanchez Soto) wrote: > >>Saludos. >> >> Hola disculpen.que les moleste. >> >> Me pueden ayudar en lo siguiente: >> >> >> Tengo un scrip que si lo ejecuto en forma manual o con ksh -x va de maravilla, crea un archivo que se especifica en el script, pero a la hora de meterle en el cron el archivo se crea vacio. Si sabes la solucion me las podrias dar por favor. Este es el script #!/bin/ksh yea=`date +%y` mes=`date +%m` dia=`date +%d` HOME=/home1/scadm/OW HOME2=/home1/scadm/xfreq/reports HOME3=/home1/scadm/OW/reportes ayer=`$HOME/yesterday` aye=`expr $dia - 1` if [ $aye = 0 ] ;then dia=31 else dia=$aye fi fecha=$mes/$dia/$yea hora1=`grep "Busy Hour " $HOME2/$ayer.bh.trf | cut -c 22-23` hora2=`grep "Busy Hour " $HOME2/$ayer.bh2.trf | cut -c 22-23` case $hora1 in 12) $HOME/OrigWeight_Period.x 1 1 $fecha $hora1:00 2 1 0 >> $HOME3/$ayer.owd $HOME/OrigWeight_Period.x 1 1 $fecha $hora1:30 2 1 0 >> $HOME3/$ayer.owd;; esac case $hora2 in 18) $HOME/OrigWeight_Period.x 1 1 $fecha $hora2:00 2 1 0 >> $HOME3/$ayer.owd $HOME/OrigWeight_Period.x 1 1 $fecha $hora2:30 2 1 0 >> $HOME3/$ayer.owd;;esac >> >-- >---------------------------------------- >Linf : Carlos Sanchez Soto >Email: sanchezcrs en netscape net > carlos en antares tecmor mx >Sitio: www.geocities.com/carlos_mor_2000 > > > >__________________________________________________________________ >Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ > >Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ > > -- ---------------------------------------- Linf : Carlos Sanchez Soto Email: sanchezcrs en netscape net     carlos en antares tecmor mx Sitio: www.geocities.com/carlos_mor_2000 __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ _______________________________________________ Ayuda mailing list Ayuda en linux org mx