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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

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

    Scripting Switch User

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

    What is the best hardware?

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

    Port Sniffering

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

    Permissions for User/Groups

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

    Permissions for User/Groups

    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

Part and Inventory Search

Back
Top