Does anybody know how “su -c ‘/opt/test/bin/testreport -a’ - testadmin >$OUTTESTDIR/test.txt 2>>$LOGFILE” could correctly be executed in SUSE linux?
Right now i have troubles with reading user environment variables of “testadmin” user, somehow it doesn’t work for me. In RH linux it works without problems, all testadmin environment variables are read while executing “/opt/test/bin/testreport” script.
sigw09-mco3:~ # uname -a
Linux sigw09-mco3 2.6.18.2-34-default #1 SMP Mon Nov 27 11:46:27 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux
sigw09-mco3:~ #
sigw09-mco3:/etc # cat SuSE-release
openSUSE 10.2 (X86-64)
VERSION = 9.2
sigw09-mco3:/etc #
sigw09-mco3:~ # echo $SHELL
/bin/bash
sigw09-mco3:~ #
sigw09-mco3:~ # bash --version
GNU bash, version 3.1.17(1)-release (x86_64-suse-linux-gnu)
Copyright (C) 2005 Free Software Foundation, Inc.
sigw09-mco3:~ #
Note: system where it works
[root@sigw09-mco2 ~]# bash --version
bash --version
GNU bash, version 3.00.15(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.
echo -ne “\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}\007”
[root@sigw09-mco2 ~]#
@zakp. Welcome to these forums.
Please do understand that the different threads with questions on these forums are discussions about one problem or subject within a thread Each thread has a Title that hopes to advertise as good as possible what this thread is about. All in threads are in (sub)forums that try to group together threads with similar subjects.
Thus for you, to get the best answers to your problem, you first choose the most appropriate (sub)forum (Programming/Scripting I guess, maybe Applications) and then decide for a Title that should draw the attention to people knowing something about your problem. And then start your thread.
Hanging a completely new question in a running (or old) thread will:
a) blur the subject of that thread
b) not draw the attention of people looking for new threads with new questions.
I hope you understand how this works andhow you arer hiding your question for others.
Dear Henk, i fully understand your concerns and will remove my thread which suppose to be placed under different (sub)forum. I decided to use this thread to somehow get in touch with somebody who can explain me why after the registration i haven’t been able create new thread. Now, under Programming/Scripting i’m able to do that and my thread is moved there. I’m sorry for inconvenience it might cause. regards, Pavel
You are welcome. It is all to help you. Most inconviniences that originate from posting on the wrong plafe or with a lousy title are for the OP, much less for others.