From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,e0550b7ddce5863e X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!y43g2000cwc.googlegroups.com!not-for-mail From: "Mehlwurm" Newsgroups: comp.unix.tru64 Subject: Re: a cron problem Date: 31 May 2006 04:15:35 -0700 Organization: http://groups.google.com Message-ID: <1149074135.305413.238510@y43g2000cwc.googlegroups.com> References: <1148994384.922588.237360@r44g2000cwb.googlegroups.com> NNTP-Posting-Host: 194.49.221.254 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1149074144 7331 127.0.0.1 (31 May 2006 11:15:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 31 May 2006 11:15:44 +0000 (UTC) In-Reply-To: <1148994384.922588.237360@r44g2000cwb.googlegroups.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.4) Gecko/20030619 Netscape/7.1 (ax),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 S1PS Complaints-To: groups-abuse@google.com Injection-Info: y43g2000cwc.googlegroups.com; posting-host=194.49.221.254; posting-account=L-DUGQ0AAADslts-klmcaR5mUlec1rqB Xref: g2news2.google.com comp.unix.tru64:393 i have done some changes, but it still doesn=B4t work :-( -=3Dstart of the new scipt=3D- more 2_secure_script #!/bin/sh ########################################## ## ## ## Scirpt zum Sichern von DB's ## ## ## ########################################## ## ## ## Autor: M. Wilke ## ## Datum: 26.04.2006 ## ## Version: 1.2 ## ## ## ########################################## # # In der Datei "liste" sind die zu sichernden DB's anzugeben # cd /usr/users/dms/bin dir=3D`pwd` for db in `cat liste` do tar=3D""$db"_by_cron_`date +%d%h%y_%H%M`.tar" rm -rf db_tmp_dir mkdir db_tmp_dir chmod 777 db_tmp_dir cd db_tmp_dir touch copy.out touch copy.in touch new_copy.in chmod 777 copy.in chmod 777 copy.out chmod 777 new_copy.in /usr/users/dms/bin/copydb -c $db chmod 777 copy.in chmod 777 copy.out chmod 777 new_copy.in sql -f8F79.38 $db < /usr/users/dms/bin/db_tmp_dir/copy.out chmod 777 copy.in chmod 777 copy.out chmod 777 new_copy.in sed "s+`pwd`+.+" < /usr/users/dms/bin/db_tmp_dir/copy.in > /usr/users/dms/bin/db_tmp_dir/new_copy.in chmod 777 copy.in chmod 777 copy.out chmod 777 new_copy.in mv /usr/users/dms/bin/db_tmp_dir/new_copy.in /usr/users/dms/bin/db_tmp_dir/copy.in chmod 777 copy.in chmod 777 copy.out chmod 777 new_copy.in tar -cvf $tar . chmod 777 $tar gzip -9 $tar mv "$tar".gz /usr/users/dms/backup/BY_CRON cd .. rm -rf db_tmp_dir done exit -=3Dend of the new scipt=3D- and there is a new error mail -> >>From root Wed May 24 11:25:04 2006 Received: by mgodms51 id k4OBP3q144193; Wed, 24 May 2006 11:25:03 GMT Date: Wed, 24 May 2006 11:25:03 GMT From: system PRIVILEGED account Message-Id: <200605241125.k4OBP3q144193@mgodms51> /usr/users/dms/bin/2_secure_script[34]: sql: not found /usr/users/dms/bin/2_secure_script[34]: sql: not found ************************************************* Cron: The previous message is the standard output and standard error of the following crontab command: /usr/users/dms/bin/2_secure_script ? please help me=20 THX