|
roncli Wanderer
Joined: 07 Sep 2002 Posts: 63 Location: USA
|
Posted: Mon Nov 04, 2002 8:29 am
Aborting scripts |
I have Alias_A:
#echo "Starting Alias_A"
Alias_B
#echo "Ending Alias_A"
And I have Alias_B:
#echo "Starting Alias_B"
;Some command needs to go here
#echo "Ending Alias_B"
Basically, I want to place a command on the comment line in Alias_B that will cause the output to read:
Starting Alias_A
Starting Alias_B
Ending Alias_A
#abort and #abort 1 do not finish the script for Alias_A. What am I missing?
-roncli |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Mon Nov 04, 2002 1:26 pm |
I don't think you can do that. Try suggesting it to Zugg and maybe he'll implement it in a future version.
Kjata |
|
|
|
roncli Wanderer
Joined: 07 Sep 2002 Posts: 63 Location: USA
|
Posted: Fri Dec 13, 2002 7:44 pm |
I figured out how to do this.
Alias_A
#echo "Starting Alias_A"
#alarm +0.001 {Alias_B}
#echo "Ending Alias_A"
Alias_B
#echo "Starting Alias_B"
#abort 1
#echo "Ending Alias_B"
By calling it as an alarm, it starts up a separate thread, thus eliminating the problem with #abort 1 cancelling everything. :)
-roncli |
|
|
|
|
|