This is not something I would expect to work. Apparently you have a .profile designed to be a "menu" aka interactive - so "su -" is not likely to work for you here.
I would consider using a hard link and looking at $0 to see if it is .profile, or something else. If .profile, then I am logging in.
Better yet perhaps - do not use "su -", but just su -c "some command".
Or, in your case: exec su user2 -c "some command"
In "some command" you can test if you are doing a "login"/"su -" because the effective uid will not match the uid of your $LOGNAME when you do not use the "su -" syntax.
Build some tests around this behavior:
Anyway, this is not standard - think creative - and I hope this helps you move forward!
I've been asked to get a breakdown of what is consuming CPU time on our server over an extended period ?
Have been asked about the CPU load on our server and I need to be able to go back to my boss and indicate what % is consumed by what process (or group of processes). I.e. 15% is database... (2 Replies)
hi , i added ls -F to .profile. and i need to do ./.profile for the effect to take effect BUT i didnt and YET the next day when i came to work and log in, the changes took effect. i am on aix.
please explain..
thanks (4 Replies)
Hi all,
Can any body provide me with a link that gives the core details of the three processes(given below) in concern with 'gcc'?
1)Compiling
2)Linking
3)Loading (1 Reply)
Hi All,
I've got file1 like this:
aaa bbb ccc
ddd eee fff
ggg hhh kkk
ppp mmm nnn
and file 2 like this:
aaa qqq www
ddd fff ggg
ggg sss zzz
ppp vvv yyy
and file 3 like this:
aaa
ggg
ppp
I need to match the first column of file3 and file1, then add the rest of the file 1 to... (3 Replies)
Hi,
I was Googling to get info "How OS loads process into its memory to execute?" i mean when i execute ./<exename> , How OS exectes it?
It will be better if i tell my intention,
In my $LOGNAME saveral process are running, among all of these two process are my target process. Basically I... (1 Reply)
Hey, I recently installed Debian on a desktop PC but when it starts I can't see anything (the monitor say no signal). I don't have any idea or even a way to figure out what going on here since I can't see anything at all not even the console. Is there something that I missed in the install, or is... (22 Replies)
If ($argv == “-debug”) then
Echo “in loop”
Endif
But this is not working. If I modify this code and remove “-“, then it works.
Similarly I am getting problem using grep command also
Grep “-debug” Filename
Can someone please help me on how to resolve these... (1 Reply)
Hi guys,
I want to know how to wait for the files untill they are loaded through ftp
here the scenario is
i'm searching for the files in unix directory
/stage_area/loadfiles/telsims/test/
and there are 39 files daily i will recieve with names like *.todays_date
i.e... (7 Replies)
We are deploying an app to our students that is running as a daemon. It keeps them from using certain software. The problem is that when we initially deploy it we don't want to require a restart. So we decided to use launchctl to load the daemon manually. When we do it this way, though, the... (4 Replies)
Discussion started by: nextyoyoma
4 Replies
LEARN ABOUT DEBIAN
dspam_merge
dspam_merge(1) DSPAM dspam_merge(1)NAME
dspam_merge - merge several users' metadata into a composite
SYNOPSIS
dspam_merge [--profile=PROFILE] user1 user2 ... userN -o username
DESCRIPTION
dspam_merge merges several users' metadata into a single user's dictionary. This tool is designed to create global users and seeded data.
The hit sounds for each token and per-user totals are added together to produce a single composite dataset. After creating a composite
user, dspam_clean should be run with the -p option to clean up extraneous data.
NOTE : Merges may take a considerable amount of time. This could potentially increase the load on the server or even slow down the delivery
of email. A merge should only be performed when the system is fairly acquiesce.
OPTIONS --profile=PROFILE
Specify a storage profile from dspam.conf. The storage profile selected will be used for all database connectivity. See dspam.conf
for more information.
user1 user2 ... userN
A list of users to merge together.
-o username
The target user which will be created (if necessary). This user will contain the composite generated by the merge.
EXAMPLES
dspam_merge dick jane spot -o ralph
Merges the metadata dictionaries of dick, jane, and spot into a single composite under the user ralph
EXIT VALUE
0 Operation was successful.
other Operation resulted in an error.
COPYRIGHT
Copyright (C) 2002-2011 DSPAM Project
All rights reserved.
For more information, see http://dspam.sourceforge.net.
SEE ALSO dspam(1), dspam_admin(1), dspam_clean(1), dspam_crc(1), dspam_dump(1), dspam_logrotate(1), dspam_stats(1), dspam_train(1)DSPAM Apr 17, 2010 dspam_merge(1)