Re: control Value of variable within multi-scripts
From: Bill Marcum (bmarcum_at_iglou.com.urgent)
Date: 02/26/05
- Previous message: bmgz: "Re: cdrecord: check if cd media ready"
- In reply to: shell: "control Value of variable within multi-scripts"
- Next in thread: shell: "Re: control Value of variable within multi-scripts"
- Reply: shell: "Re: control Value of variable within multi-scripts"
- Reply: shell: "Re: control Value of variable within multi-scripts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 26 Feb 2005 11:01:30 -0500
On 26 Feb 2005 05:03:32 -0800, shell
<sonchacan@hotmail.com> wrote:
>
> Now I want to create 2nd and 3rd scripts.
> 2nd scriptshould change the variable CHECK to YES. And that could be
> used when we run the 1st script after running 1st separately.
> 3rd must reset the variable to original.
>
> What I need is value of variable must remain same as set by 2nd script
> for all sessions and retained by reboots, unless changed by 3rd
> command.
>
2nd script:
echo "CHECK=YES" > checkthis
other scripts:
if [ -f checkthis ]; then . checkthis; fi
- Previous message: bmgz: "Re: cdrecord: check if cd media ready"
- In reply to: shell: "control Value of variable within multi-scripts"
- Next in thread: shell: "Re: control Value of variable within multi-scripts"
- Reply: shell: "Re: control Value of variable within multi-scripts"
- Reply: shell: "Re: control Value of variable within multi-scripts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|