Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: "Mehlwurm" <mehlwurm@rocketmail.com>
Subject: Re: a cron problem
Date: 31 May 2006 04:15:35 -0700	[thread overview]
Message-ID: <1149074135.305413.238510@y43g2000cwc.googlegroups.com> (raw)
In-Reply-To: <1148994384.922588.237360@r44g2000cwb.googlegroups.com>

i have done some changes, but it still doesn´t work :-(

-=start of the new scipt=-

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=`pwd`
for db in `cat liste`
do
        tar=""$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

-=end of the new scipt=-

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 <root@mgodms51>
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 


THX



  reply	other threads:[~2006-05-31 11:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-30 13:06 a cron problem Mehlwurm
2006-05-31 11:15 ` Mehlwurm [this message]
2006-06-02  8:51   ` a cron problem .. know working Mehlwurm
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox