Link to home
Start Free TrialLog in
Avatar of magento
magento

asked on

Source shell script

Hi Experts,

1)Is it possible to get the flag status of one script to another.

Suppose.

1.sh
#!/bin/sh
source 2.sh
(If [Flag = True ] )&& (source 3.sh)

Open in new window


2.sh
#!/bin/sh
Some code here
Flag = True

Open in new window


2) Please share some knowledge on Global variables and set command.I was bit confused checking the tutorials .

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of magento
magento

ASKER

Thank you so much Tintin.

If i install ubuntu , can i able to work on terminals like we work in putty ? eg.creating script, test it .
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
for your other question, yes you can run terminal either on the console of the system or via putty or X windows and run scripts, etc.
Avatar of magento

ASKER

Omarfarid,

Please tell me how to open the terminal .

Once i logged in i see a horizontal menu available , where i can see the terminal options?

Thanks
Depending on your window manager, you should be able to just start typing 'terminal' to bring up the appropriate icon to click on.
It depend on your interface. Please see link below:

https://help.ubuntu.com/community/UsingTheTerminal
Avatar of magento

ASKER

Thanks Tintin and Omarfarid for your help .
Welcome