Thread
:
[SHELL] script in script
View Single Post
#
2
7th August 2007, 17:49
mopsos
Junior Member
Join Date: Feb 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
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?
mopsos
View Public Profile
Send a private message to mopsos
Find all posts by mopsos