"su" to other user

From: Buck Turgidson (jc_va_at_hotmail.com)
Date: 04/29/05


Date: Fri, 29 Apr 2005 16:22:25 -0400

I have a demo version of SAP Netweaver running on Linux. I can't get it
to autostart using /etc/init/rc3.d (SuSE 9.2). In the script, which I
know is executing because of some echo commands, I have:

 su - nw4adm -c "startsap nw4host"

When the above command as root from the command line, it works, but not
as an auto-start. The man page for "su" says "-" creates a login shell,
assumedly for user nw4adm.

The message I get from the echo command is "no start profiles found",
which leads me to believe the that nw4adm user is not reading the .cshrc
file in its home directory (I'd prefer not to use the C-shell but don't
have a choice).

Can anyone give advice?



Relevant Pages

  • Re: Redirect to Screen & File
    ... On Thu, 12 May 2005 at 03:09 GMT, Kenny McCormack wrote: ... >> output of echo commands) that he wanted both displayed and ... > He was not vague - and the original text completely validates my position. ... output from a script in the file. ...
    (comp.unix.shell)
  • Re: annoying telnet script / cron job issue
    ... > I wrote a little script that telnets into a machine and runs another ... > script, and set it as a cron job. ... Is there some reason you can't put a cron job on the sql server, ... > the script's echo commands never make it to the command line and the ...
    (comp.unix.misc)
  • Re: How to log cp script output?
    ... modify them with the echo commands, do you have any other suggestions? ... Just copy the script and make changes to the copy. ... and acknowledges the legality of this contract. ...
    (comp.unix.shell)
  • Script doesnt work with GPO
    ... I have a vbscript intended to uninstall Autocad Lite 2002 versions on the ... The script works perfect if I run ... echo commands and pause along the way. ... Set colSoftware = objWMIService.ExecQuery _ ...
    (microsoft.public.win2000.group_policy)