Prev Previous Post   Next Post Next
  #1  
Old 7th August 2007, 17:04
mopsos mopsos is offline
Junior Member
 
Join Date: Feb 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default [SHELL] script in script

Hi,

I have a problem with the execution of a script in a script.
I want recover a variable in a script and test this in a other .

For exemple :
A script : sc1.sh
Code:
#!/bin/sh
var=3
A script : sc2.sh
Code:
#!/bin/sh
sh /folder/sc1.sh
if [ var -eq 3 ]
echo "goods"
fi
But this is bad.

I try with export var , but it's not good too.
Can you say me how can I do this?

Thx.
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Subdomain redirect to script as argument cooljai Server Operation 0 12th June 2007 16:41
apache2 problem laser144 Server Operation 8 15th March 2007 17:32
Windows PHP script problem richj1232003 Programming/Scripts 1 2nd November 2006 09:01
Could someone test this script? For server configuration danf.1979 Installation/Configuration 2 22nd July 2006 22:40
Executing ICON script lawson Programming/Scripts 3 28th December 2005 20:51


All times are GMT +2. The time now is 13:36.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.