Hi!
like this:
sudo -u orago1 -H sh -i -s "cd /sapmnt/GO1/exe/uc/linuxx86_64; brarchive -c -d util_file -cds"
but just and with this prompt:
sh-4.1$
But nothing was really executed.
Regards
Oliver
Hi Teks!
I've tried now something like this, but I've got an error:
#!/bin/sh
read number path < /tmp/testoutput
if [ "$number" -gt 10000 ]
then
sudo -u orago1 -H sh -c "cd /sapmnt/GO1/exe/uc/linuxx86_64; brarchive -c -d util_file -cds"
else
exit
fi
Error...
Hi!
Yes, and thank you very much! It should be something like this. The script owner is the root user, but the command itself should execute by another user.
Kind Regards
Oliver
Hey guys,
I'd like to ask if someone could provide me a little script?
The script should read the first row of a file.
The row (file) looks something like this:
1752 /tmp/adm/test
if the number >1000
then
su - <user>
command -parameter
else
exit
How I can do?
Thanks a lot!
Kind Regards
Oliver
Hello Gys,
well, anyway I've installed the english UTF-8 package.
The strange thing is, that the machine gives me a warning of the current timezone. Is it equal, or should I've take care of that?
How can I takeover the parameter as a global setting for the system? I've to set LANG and CTYPE...
Hey Steve,
thanks for the info! Well, suddenly it was working like you said :-) But another thing ... do I have to reboot the machine if I've installed and export a new language environment at all? I've already added an entry in the /etc/profile file.
Thanks & Regards
Oliver
Hi,
I'm a dummy in SUN! Well, I've to install a new language environment.
That must be: de_DE.UTF-8, de_DE.UTF8@euro.
The machine it's a SPARC proc. in a 64-Bit environment.
I've looked in internet and found the package "SUNWeu8ox" for UTF-8 for the American English. That would be ok, too I...
Hello Gys,
can anybody give some recommendations to me, how it's the best to migrate an old SCM 4.0 Release to NW?
There are some differents opinions to do so:
1. First to mirgrate to the lowest uprade level 4.1 and in a second step to the NW instance.
2. First to mirgrate to the latest...
Hi &
Sorry, now I'm a little bit better, I've canceled the last { like this.
The Script:
#!/usr/bin/ksh
#
PID=$ ps -ef |grep "/usr/sbin/writesrv" | awk '{print $2}'
kill -9 $PID
exit 0
Now I'll get the right PID, but still have a failure in the script.
The Output:
papsol:root:/opt/scripts...
Hey!
No problem, the process I like to kill ist this:
root 286914 86172 0 Jan 21 - 0:00 /usr/sbin/writesrv
and the killscript is like that:
PID=$(ps -ef | grep "/usr/sbin/writesrv" | awk '{print $2}')
kill -9 $PID
exit 0
Thanks & Kind Regards
Oliver
Hey,
I know, I'll manage it with a second script (killscript) for cancel the main once. But I'll get an error message by execute:
./killscript: {ps: not found
awk: There is an extra } character.
The source line is 1.
The error context is
{print >>> $2}} <<<
syntax...
Hi!
Thanks a lot, you're great! Well, I've tested in a script, and the current process will hang up while the script is hanging. I've tried to find the solution therefore. I've thinked about - at all - I can't fetch a PID within the script which is the PID of itself. It's right? If I cancel the...
Hi!
Yes I know to grep for the process, but my problem is: How can I take out the PID there to chain this with the kill command? Is it complicated, isnt it? Well, the process hangs cause it's a running programm which wait for several characters or inputs to close in a normal way. So at last it's...
Hi!
Thanks for all solutions! But what on earth is "Sudo"? I've never heard before. So at last the script offered by MoreFeo works very well:-) But just one more little problem, I've started a process within this script, too.
It looks like this:
root 262314 172134 0 Jun 10 - 0:00...
Hi Gys!
It would be nice to get some suggestions for my problem here. I'd like to execute a command by another user than Root. This should be done by a script. The process within the script must be like this:
ROOT#su - <USER>
USER#ls -ltr /opt/freeware/glitter/*.log > /tmp/glitter.txt
Please...
Hello gys,
short question: Does somebody knows some whitepapers or links within you will get some information of the recommend hardware for Tivoli Storage Manager 5.4? I'd like to know what's the better solution, Intel on Windows based, or a powermachine by AIX OS?
We also use the NDMP prot...
Hey guys,
one question about remote control. Is there a possibility to have some protcolls of the traffic on all ports? I don't want to use a firewall for, but I want to record all incomming traffic of a port. It would be nice to have a record-file of it, where I can also make a query of a...
Hi Rod,
thanks for the help! yes, you're right with the force option. I've done with force user, it's also a possibility.
All the Best!
Kind Regards
Oliver
Sorry...One more Update ;-)
I've found in the samba.conf another workgroup, I think was given by...I don't know...
Can I change here to the workgroup "sys" f. ex. or can I a second workgroup in the current row?
Thanks a lot!
Oliver
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.