Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by olli2003

  1. olli2003

    read a file (number)

    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
  2. olli2003

    read a file (number)

    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...
  3. olli2003

    read a file (number)

    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
  4. olli2003

    read a file (number)

    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
  5. olli2003

    New language evironment in Solaris 9

    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...
  6. olli2003

    New language evironment in Solaris 9

    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
  7. olli2003

    New language evironment in Solaris 9

    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...
  8. olli2003

    Migrate SCM System 4.0 to NW 7.0 Release

    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...
  9. olli2003

    Scripting Switch User

    Okay, I've a better understanding. Thanks a lot for your suggestions and solutions. Was a good help to me! Kind Regards Oliver
  10. olli2003

    Scripting Switch User

    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...
  11. olli2003

    Scripting Switch User

    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
  12. olli2003

    Scripting Switch User

    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...
  13. olli2003

    Scripting Switch User

    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...
  14. olli2003

    Scripting Switch User

    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...
  15. olli2003

    Scripting Switch User

    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...

Part and Inventory Search

Back
Top