View Single Post
  #2  
Old 7th August 2007, 18:49
mopsos mopsos is offline
Junior Member
 
Join Date: Feb 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I try this
sc1.sh :
Code:
#!/bin/sh
var=1
sh /folder/sc2.sh $var
sc2.sh :
Code:
#!/bin/sh
echo $1
But The system didn't accept a variable in the command sh only a "word" (
ex: sh /folder/sc2.sh var .

Where is the problem?
Reply With Quote