10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have perl script and in the first line we are invoking .sh script to set ENV variables.
e..g
eval '. $envfile; exec $PERL -S $0 "$@"'
I want to change some of the env variables while the program is running and I am settging it like this ..
$ENV{ORACLE_HOME}=trim($oraclehome);... (1 Reply)
Discussion started by: talashil
1 Replies
2. Shell Programming and Scripting
Hello my friends i have created a perl cgi script to see browser support for text and graphics but $ENV variable is not working ,
Code is:
#!/usr/bin/perl
#Author Ravinder kumar
# START
use warnings;
$nongraphic = 'lynx|CERN-Linemode|elinks';
$client = $ENV{'HTTP_USER_AGENT'};
$text... (9 Replies)
Discussion started by: rink
9 Replies
3. Web Development
(Above from Apache docs).
On my system, using:
SetEnvIf User-Agent Mozilla IsBad=1
Order allow,deny
Allow from all
Deny from env=IsBad ...I see that environment variable is set (using phpinfo()) but the page is still served. No errors in the Apache logs. (1 Reply)
Discussion started by: gnurob
1 Replies
4. Shell Programming and Scripting
I have a project on which I have to use cpuinfo to get model name, number of cpus and bogomips.. for sys I need the uptime, total ram and from env I need the HOSTNAME.. from CMD ouputs i need the eth0-ip and .df..
The problem is that those modules have to be call from a subroutine and I have to... (0 Replies)
Discussion started by: thiedi16
0 Replies
5. Shell Programming and Scripting
I have 3 programs, 1 in perl, 2 in csh: call them perl1, csh1 and run.ol
I need perl1 to set csh1 variable NOLOG_qsub = ""
I need perl1 to run, run.ol
run.ol takes the executable and input and outputs to output
run.ol#!/bin/csh -f
# run.ol executable input output
perl1 should... (1 Reply)
Discussion started by: austinj
1 Replies
6. HP-UX
just for practice,:) (1 Reply)
Discussion started by: freebsdjlu
1 Replies
7. UNIX for Advanced & Expert Users
hi i have some perl scripts with shebang line as (#! /usr/bin/env perl ) instead of actual absolute path of perl ( i know why its that way ) everything works fine from command line , the problem is when i am trying to run those scripts from web ( local web tool ) it throws error as /usr/bin/env :... (6 Replies)
Discussion started by: zedex
6 Replies
8. Shell Programming and Scripting
Hi:
I am trying to reuse an existing shell script foo1.csh to set environment variables inside a perl script and its childern processes.
Is it possible at all to make those environment variables persistent in the main perl process and its children processes?
Do I have to create a new... (4 Replies)
Discussion started by: phil518
4 Replies
9. Shell Programming and Scripting
Hello friends,
i run two scripts manually & they work.
i run them in cron & they don work.
how to match the two env's
1.command line env
2.cron env
i would like cron to use command line env.
Thanks & Regards
Abhijeet (1 Reply)
Discussion started by: abhijeetkul
1 Replies
10. Solaris
hey guys!!!!
i have a few question .. how to modify the user ENV in Sun Solaris 10 ... Thanks!!!! (1 Reply)
Discussion started by: giancarlodjabon
1 Replies