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 TouchToneTommy 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 woche

  1. woche

    switch user and execute expect script

    hi excellent - thanks! actually i wasn't aware as quickly as you think (unfortunately) that my variable is only in the calling scripts environment. i thought that the exec would fork a new subshell which in turn would inherit the calling shells settings. well, there must be a reason why this is...
  2. woche

    switch user and execute expect script

    hei marsd thanks!! two things: 1. my application somehow doesn't accept my environment variables. it keeps telling me to set variable PCMSDB, even though i'v set it (tried: set env(PCMSDB) my_value; set PCMSDB my_value). retrieving PCMSDB with puts shows that the value is set correctly -...
  3. woche

    switch user and execute expect script

    hi all i'm trying to write some test driver for our application. i'd like to create scripts which allow me to switch user and from there on talk to the application as the user i've switched to. preferably i logon as every different user (i need several users with different permissions)...
  4. woche

    batch execution and mkfifo

    hi i'm trying to set up a named pipe, stuff in some commands and - from another programm - execute the commands in the pipe. i thought, that after execution of the pipe, the pipe itself would die (disappear) - but mine doesn't: << program 1 >> mkfifo MYPIPE 'ps -ef' > MYPIPE & ...some time...
  5. woche

    IFS problem

    hi hmmm... once again one of those strange things - sometimes my idea of things is just a bit too tight :-( well, thanks for your help! woche
  6. woche

    IFS problem

    hi this seems like a simple question: HOW DO I SET THE IFS VARIABLE IN MY SCRIPT? i just can't get it to work! i tried different things: IFS=&quot;.&quot; IFS=. IFS='.' echo $IFS # never returns what i want, just blank but non worked. i'm trying to define ifs at the beginning of my...
  7. woche

    writing a daemon

    okay, i get the picture. i guess i stick to writing the thing in shell and havin cron execute the script periodically. say i wanted to run the script every five minutes, stop it from running when an error occurred and not execute the script between 4 and 6 a.m every day. can i do that in cron? thx!
  8. woche

    writing a daemon

    hello i'm trying to write a shell script which does something in a loop, ignores some signals (HUP,...) -etc. -> make it behave somewhat like a daemon. my problem: how can i communicate with my &quot;daemon&quot;? after having started the script as a background process, i would like to log off...
  9. woche

    cannot clear /var/adm/ras/errlog

    perfect - answers like these just send me flying - honestly!!!! thanks guys woche
  10. woche

    rename symbolic links

    sorry, my english...;-) I try once again: I'm not actually trying to rename the link but to relink it, eg: pcms_home -> /mydir to a new destiantion: pcms_home -> /yourdir. woche
  11. woche

    cannot clear /var/adm/ras/errlog

    thanks aixqueen my last reply wasn't to your mail actually - I think they just crossed :-) In that case: thanks for your answer, especially the part of the file corruption. errpt returns to the command-prompt and so I guess, errlog &quot;is empty&quot;. woche
  12. woche

    cannot clear /var/adm/ras/errlog

    Yes, I'm aware of that, but my understandign of the errclear utility is such, that it clears errlog from all its content (just like you can clear any file by issueing &quot;> myfile&quot;)...that doesn't happen. I read somewhere, that it's not good to clear the errlog by typing &quot;>...
  13. woche

    rename symbolic links

    Hi Has anyone got an idea of how to rename a symbolic link other than deleting and recreating the links. thx woche
  14. woche

    cannot clear /var/adm/ras/errlog

    Hi Bill Thanks for your answer. It does create the errlog, but it's not empty - but maybe doesn't need to be:-) So: when I issue &quot;errclear 0&quot; the errlog stays the same in its content. woche
  15. woche

    cannot clear /var/adm/ras/errlog

    Hello I got a problem with the errclear utility: I get an &quot;unexpected eof&quot;-error every time the cron job starts the utility. The size of errlog = 0. Maybe it was cleared using &quot;> errlog&quot; - which doesn't seem to be a good idea (I don't understand why). so I copied the errlog...

Part and Inventory Search

Back
Top