LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   shell script programming (http://www.linuxquestions.org/questions/linux-general-1/shell-script-programming-60273/)

steltner 05-17-2003 08:00 AM

shell script programming
 
Hallo,

I'm realy new at Linux shell programming, but have many years experience in C++ etc and some big troubles - it seems thats not easy. ok, what I want do is to call one shell script from the another one. I got some error regarding the command line proccessing:

script 1 (compress.sh):
-----------------------------

#! /bin/sh
# switches:
# -ibck in background
#
/opt/rar/rar_static $3 -s -rr8 -cl -m5 -hp$4 $1.$2.01.rar /data/pictures/_index/bmp/$1/$1.$2.*.bmp

script 2 (compressall.sh):
----------

. compress 1999 103 a password

But I got message that the RAR can't find the *.bmp files. Than I called the compress.sh alone for debugging like:

sh -x compress.sh 1999 103 a password

and got the same result with the output:

'/opt/rar/rar_static $3 -s -rr8 -cl -m5 -hp$4 $1.$2.01.rar' /data/pictures/_index/bmp/$1/$1.$2.*.bmp

I'm realy suprised about the quotes. May someone can give me some advice.

Joern

joern@steltner.com


All times are GMT -5. The time now is 12:35 PM.