LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-17-2003, 07:00 AM   #1
steltner
LQ Newbie
 
Registered: May 2003
Posts: 18

Rep: Reputation: 0
Wink 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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
question about shell-script programming GSX Programming 11 11-22-2005 04:58 PM
creating shell script programming using KNOPPIX.. help cinderella Linux - Newbie 4 12-20-2004 07:12 PM
shell script programming problem newbie_ken Programming 5 08-16-2004 11:19 AM
How can I check wether a file is empty in Linux by using shell script programming ??? Bassam Linux - General 2 02-26-2004 01:01 AM
How to delete a line from a text file with shell script programming Bassam General 1 01-28-2004 08:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration