You are not logged in.
Will Bash allow for global variables declared and reset during runtime that can be shared between differnet shells?
Offline
yes. Just export the variable.
export var="foo"
Offline
It doesn't work for me:
Shell 1:
[skottish@localhost ~]$ export var="foo"
[skottish@localhost ~]$ echo $var
foo
Shell 2:
[skottish@localhost ~]$ echo $var
Offline
sorry, it only works for the present shell and any other child shells. You could always put it in /etc/profile or ~.bashrc.
Offline
Shells can't intercommunicate. If you want, you can try to hack up an IPC system with FIFOs or sockets (the latter is your best bet, try netcat), but it will be clunky.
May I ask what you're trying to do? There's probably a better way.
Offline
Write it to a file?
Offline
skymt, to make a long story short, I was simply weighing my options of sharing data between two instances of Gimp. Running Gimp-Python scripts from two separate shells gives me true multitasking. The nature of the scripts requires that they are synchronous at all times. I can be a lot less vague if you like, but it's going to be much more wordy than this is :shock:.
I think that pauldonnelly may be on the right track. I was just hoping to avoid adding any more time consuming operations. The frames already take around 50 seconds a piece to generate, and I need 12230 of them. With both cores of my processor running at full strength, that's about 85 hours of render time.
Offline