Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > setting of session values from a script for the same session in which it is running

Reply
Thread Tools

setting of session values from a script for the same session in which it is running

 
 
King_Kong
Guest
Posts: n/a
 
      05-23-2005
Can somebody help me with the following problem..i am stuck at a
point........
i want to execute shell commands from a perl script..
which r dynamic in nature...
one set of commands set the environment for the succeeding commands.
but the prob is the environment set is not in the same session as the
next command .. so my next set of commands fail

how do i set the session(or run the commands in the same session in
which the script it self is running)...

eg.

$ perl a.pl (in a.pl we have 2 sets of commands 'setenviroment` and
'take action')
this must be equivlent to=>
$setenvironment
$perl a.pl

but the trick is the setenvironment function chages dynamically reading
from a file.

prompt suggestions r requested..

 
Reply With Quote
 
 
 
 
Brian McCauley
Guest
Posts: n/a
 
      05-23-2005
King_Kong wrote:

[ snip FAQ: "I {changed directory, modified my environment} in a perl
script. How come the change disappeared when I exited the script? How
do I get my changes to be visible?" ]

> prompt suggestions r requested..


I suggest you promptly consult the FAQ.

 
Reply With Quote
 
 
 
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      05-23-2005
King_Kong wrote:
> Can somebody help me with the following problem..i am stuck at a
> point........


<snip>

> prompt suggestions r requested..


Really?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Block execution of script while same script is already running MrBanabas@googlemail.com Ruby 2 12-17-2008 06:03 PM
running same script on same data on two different machines -->different result Christopher Brewster Python 5 11-14-2008 08:19 PM
Pop-up gives old values - like memory is not cleared and same values keep appearing chris ASP .Net 0 10-13-2006 11:57 AM
Re: sending hidden values AND option values at the same time ? Jukka K. Korpela HTML 1 09-12-2006 02:32 PM
Loosing Session Values from script to script Mirovk ASP General 5 08-22-2006 08:15 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57