[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Shell-script question



On 2001-02-11 16:48 +0100, ktb <x.y.f@home.com> wrote:
> On Sun, Feb 11, 2001 at 03:42:15PM +0100, Andre Berger wrote:
> > On 2001-02-11 15:16 +0100, Erdmut Pfeifer <e.pfeifer@science-computing.de> wrote:
> > > On Sun, Feb 11, 2001 at 02:26:51PM +0100, Andre Berger wrote:
> > > > I wrote a shell script "/usr/local/bin/mailcheck" (/usr/local/bin/ is in
> > > > $PATH of my potato bash) that gives a list of pon "targets" (diff.
> > > > ISPs), and is owned by root., perms 755. I've virtually no experience
> > > > with shell scripting, so it may be poor quality. Anyway: If the script
> > > > is invoked from a command line within or outside X, it works.  If it's
> > > > invoked via "rxvt -e mailcheck" or "rxvt -ls -e mailcheck", everything
> > > > looks normal, but nothing's dialed. 
> > > 
> > > just guessing...: maybe you have different sets of environment
> > > variables for the different invocations. From where do you execute the
> > > "rxvt ..."? 
> > 
> > icewm's menu.
> > 
> > > You might want to put a "set >/tmp/somefile" in your script
> > > and see if the relevant env settings differ from where you can invoke
> > > it successfully...
> > > 
> > > Erdmut
> > 
> > < is from the command line, > from the script via icewm's menu/rxvt.
> > 
> > < BASH=/bin/bash
> > > BASH=/bin/sh
> > < LC_MESSAGES=POSIX
> > > LC_MESSAGES=en_US
> > < PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/local/lib/wp/wpbin
> > > PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
> > < SHELLOPTS=braceexpand:hashall:histexpand:monitor:history:interactive-comments:emacs
> > > SHELLOPTS=braceexpand:hashall:interactive-comments
> > < _=LC_MESSAGES
> > < i=LC_IDENTIFICATION=de_DE
> > > _=sh
> > 
> 
> I missed the first part of this so I apologize if I'm repeating but make
> the permissions of your script something like -
> -rwxrw-rwx    1 root     root 
> and see if that helps.
> kent

Doesn't even work as

-rwxrwxrwx    1 root   root   872 Feb 11 15:22 /usr/local/bin/mailcheck

Andre Berger                                [andre.berger@topmail.de]



Reply to: