Re: shell script

2004-03-24 Thread loco
the solution is this: ## ## cat dominios.txt | while read line do if (echo $line |grep "\.it" >> /dev/null ) then echo "."; else echo -e " \nzone \"${line}\" { type master; file

shell script

2004-03-24 Thread loco
hi I have this script: ## rm -f *.tmp while read line; do echo -e "\nzone \"${line}\" { type master; file \"tuttoqui.zone\"; allow-transfer { 151.38.133.13; }; };\n" >> named.tmp; done < dominios.txt

Re: cron path problem

2004-03-24 Thread loco
when you use a shell script this run on the specific shell whith the user ambient path because is to diferent run a script on cron or tty i put the complet path on all comand than i use!, ## /sbin/prog1 -d /home/pedro /bin/prog2 -frp > /home/pedro/filename.txt ## sorry for my eanglish And