02-13-2009
3004-505 Cannot set process environment
Guys
I have an AIX 5.3 box.I am getting following messages if i try to switch to any non root user.
bash-3.00# su - sys
3004-505 Cannot set process environment.
bash-3.00# su - daemon
3004-505 Cannot set process environment.
bash-3.00# su - adm
3004-505 Cannot set process environment.
bash-3.00# su - nobody
3004-505 Cannot set process environment.
bash-3.00# su - guest
3004-505 Cannot set process environment.
bash-3.00# su - uucp
3004-505 Cannot set process environment.
bash-3.00# su - lp
3004-614 Unable to change directory to "/var/spool/lp".
You are in "/home/guest" instead.
3004-505 Cannot set process environment.
bash-3.00# su - lpd
3004-505 Cannot set process environment.
bash-3.00# su - user1
3004-505 Cannot set process environment.
bash-3.00# su - user2
3004-505 Cannot set process environment.
only su - bin is working
Why is this happening?
Regards
Abhijeet
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Installed a program, need to set the system up so that when the executable is entered, it finds the path to the executable. In Windows, set under system properties, advanced, environmental variables. How do I do this with Unix? Specifically using Solaris 9. I have tried:
env... (3 Replies)
Discussion started by: kohoutek
3 Replies
2. Shell Programming and Scripting
Hi,
I am trying to set the environment for my oracle database. I have 5 database in an unix box. My idea is to create 5 files for each database with the following script on it.
After logging into the unix box ...just by typing the database name....the enviornment for the database... (2 Replies)
Discussion started by: castlerock
2 Replies
3. Linux
Hi,
I am quite new to Linux. And I have doubt how to set new environment variable with value to a C executable.
Let say I have a environment variable $Hack ;
I would like to load a value for this variable; so that when the C executable is executed, the $Hack would set the variable value.
... (4 Replies)
Discussion started by: ahjiefreak
4 Replies
4. Shell Programming and Scripting
I am running this pre-script with a post scripts that needs to share the same variables. How do I keep the environment variable settings for the next script to access from the RMAN Script?
Prescript #1
#RMAN Script
#!/bin/ksh
ORACLE_SID=INVPRD;export ORACLE_SID... (1 Reply)
Discussion started by: gzs553
1 Replies
5. Solaris
I am working with solaris 9 sunBlade150 Box.
I Installed a program, need to set the environment variable so that when the executable is entered,it finds the path to the executable.
The documentation for the software says: Set the appropriate environment variable:
Connect to server failed;... (8 Replies)
Discussion started by: smartgupta
8 Replies
6. UNIX for Dummies Questions & Answers
hi,
i am new to perl:
os : Linux
i wrote simple perl script to select from table i am getting this error and how to set ORACLE_HOME environment variable :
script:
#!usr/bin/perl
use DBI;
use Mail::Sendmail;
#use Date::Calc;
use MIME::QuotedPrint;
use HTML::Entities;
use POSIX... (2 Replies)
Discussion started by: prakash.gr
2 Replies
7. Shell Programming and Scripting
Hi,
I can run shell script from the command line using
$ . set
If the run the script inside perl script using
$var = system("set");
print $var;
This prints 0.
This command sets up the environment from command line. But when used inside the shell script or perl script it... (2 Replies)
Discussion started by: sandy1028
2 Replies
8. Shell Programming and Scripting
Hi,
i have the following env variable. currently i am exporting variable in the same script file. but i need this is in a text file and the scripts need to export this variable from the text file.
can you please suggest me. is it possible.
export... (6 Replies)
Discussion started by: rsivasan
6 Replies
9. Shell Programming and Scripting
Hi
Could you please tell me how to set environment variables in Unix ksh.
And how can acess those varibles in shell scripts
( Please give the code with an example)
For my scenario.
We have written number of shell scripts with hard coded username and password.
But if we want to... (1 Reply)
Discussion started by: shyamu544
1 Replies
10. UNIX for Beginners Questions & Answers
I just started a new job and I've been tasked with cleaning up the files that set up all the environment variables. The system works as is. What happens is:
1. You log in to the server.
2. You call a file that sets a bunch of environment variables and that displays a list of all the databases... (4 Replies)
Discussion started by: Keyeh
4 Replies
LEARN ABOUT OPENDARWIN
funcen
funcen(1) SAORD Documentation funcen(1)
NAME
funcen - find centroid (for binary tables)
SYNOPSIS
funcen [-i] [-n iter] [-t tol] [-v lev] <iname> <region>
OPTIONS
-i # use image filtering (default: event filtering)
-n iter # max number of iterations (default: 0)
-t tol # pixel tolerance distance (default: 1.0)
-v [0,1,2,3] # output verbosity level (default: 0)
DESCRIPTION
funcen iteratively calculates the centroid position within one or more regions of a Funtools table (FITS binary table or raw event file).
Starting with an input table, an initial region specification, and an iteration count, the program calculates the average x and y position
within the region and then uses this new position as the region center for the next iteration. Iteration terminates when the maximum number
of iterations is reached or when the input tolerance distance is met for that region. A count of events in the final region is then output,
along with the pixel position value (and, where available, WCS position).
The first argument to the program specifies the Funtools table file to process. Since the file must be read repeatedly, a value of "stdin"
is not permitted when the number of iterations is non-zero. Use Funtools Bracket Notation to specify FITS extensions and filters.
The second required argument is the initial region descriptor. Multiple regions are permitted. However, compound regions (accelerators,
variable argument regions and regions connected via boolean algebra) are not permitted. Points and polygons also are illegal. These
restrictions might be lifted in a future version, if warranted.
The -n (iteration number) switch specifies the maximum number of iterations to perform. The default is 0, which means that the program
will simply count and display the number of events in the initial region(s). Note that when iterations is 0, the data can be input via
stdin.
The -t (tolerance) switch specifies a floating point tolerance value. If the distance between the current centroid position value and the
last position values is less than this value, iteration terminates. The default value is 1 pixel.
The -v (verbosity) switch specifies the verbosity level of the output. The default is 0, which results in a single line of output for each
input region consisting of the following values:
counts x y [ra dec coordsys]
The last 3 WCS values are output if WCS information is available in the data file header. Thus, for example:
[sh] funcen -n 0 snr.ev "cir 505 508 5"
915 505.00 508.00 345.284038 58.870920 j2000
[sh] funcen -n 3 snr.ev "cir 505 508 5"
1120 504.43 509.65 345.286480 58.874587 j2000
The first example simply counts the number of events in the initial region. The second example iterates the centroid calculation three
times to determine a final "best" position.
Higher levels of verbosity obviously imply more verbose output. At level 1, the output essentially contains the same information as level
0, but with keyword formatting:
[sh] funcen -v 1 -n 3 snr.ev "cir 505 508 5"
event_file: snr.ev
initial_region: cir 505 508 5
tolerance: 1.0000
iterations: 1
events: 1120
x,y(physical): 504.43 509.65
ra,dec(j2000): 345.286480 58.874587
final_region1: cir 504.43 509.65 5
Level 2 outputs results from intermediate calculations as well.
Ordinarily, region filtering is performed using analytic (event) filtering, i.e. that same style of filtering as is performed by fundisp
and funtable. Use the -i switch to specify image filtering, i.e. the same style filtering as is performed by funcnts. Thus, you can per-
form a quick calculation of counts in regions, using either the analytic or image filtering method, by specifying the
-n 0 and optional -i switches. These two method often give different results because of how boundary events are processed:
[sh] funcen snr.ev "cir 505 508 5"
915 505.00 508.00 345.284038 58.870920 j2000
[sh] funcen -i snr.ev "cir 505 508 5"
798 505.00 508.00 345.284038 58.870920 j2000
See Region Boundaries for more information about how boundaries are calculated using these two methods.
SEE ALSO
See funtools(7) for a list of Funtools help pages
version 1.4.2 January 2, 2008 funcen(1)