Re: How to set env variable for an already running shell from other shell ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 6, 2009 at 2:55 PM, yogeshwar sonawane <yogyas@xxxxxxxxx> wrote:
> Hi all,
>
> Can one export/set some variables for an already running shell from
> other shell ?
> Is there any command where i can specify env=value & shell process id ?
>
> This is similar to sending signals from one to another process.

Assuming it is C program, why can't you send the signal. just write a
signal handler to enable the debug variable when the signal is
received.


>
> We have one program, which prints some debugging information when a
> env variable is set. During execution, first a new shell is created &
> then program is executed.
> Sometimes that program gets stuck somewhere without printing anything.
> If i set the env variable & then execute, the messages will come from
> start of execution.
> I want some mechanism so that when program is stuck,

You can set the variable by attaching the process from gdb, isn't it ??

>i can set that
> env variable which will enable printing debugging information.
>
> Is this possible using some command ? OR how to do this ?
>
> This question is somewhat out of topic(not related to kernel). But,
> still help will be appreciated.

I guess more details about the program (language, what it is trying to
do) would help others to answer the question better.

Thanks -
Manish

>
> TIA,
> Yogeshwar
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>



-- 
Thanks -
Manish

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux