Re: pls need some guidance

From: Stein Arne Storslett (sastorsl_at_THOU.SHALT.NOT.SPAM.online.no)
Date: 07/31/03


Date: Thu, 31 Jul 2003 12:14:38 GMT


<parth002000@yahoo.com> wrote in <cef5d0a6.0307301259.51fa51cb@posting.google.com>:
> Stein Arne Storslett <sastorsl@THOU.SHALT.NOT.SPAM.online.no> wrote in message news:<QjNVa.16750$Hb.280335@news4.e.nsc.no>...
>> <be1952@hotmail.dot.com> wrote in <pan.2003.07.30.20.00.42.70269@hotmail.dot.com>:
>> > On Tue, 29 Jul 2003 13:43:55 -0700, parth wrote:
>> >
>> >> #!usr/bin/ksh
>> >
>> > ok i'll be the dummy, shouldnt that be
>> >
>> > #!/usr/bin/ksh
>>
>> I should think so.
>> I'll follow up with:
>> Is that line on the _first_ line of the script? That is vital.
>>
>> Is perhaps your user shell ksh? That will explain why it works in your
>> home environment even if it doesn't in you production environment.
>>
>> What shell do you use in the production environment? If it's not ksh, it
>> explains why it doesn't work there.
> Hey stein,
> I got your question. My home shell is ksh and so as production
> environment. The script dosen't give any error but dosen't serve its
> purpose too.

Please don't top post, it messes up the reading. *friendly smile*

I have not read your script to see what's ksh spesific with your script.

But since you use #!/usr/bin/ksh (with a slash in the front) and it _is_
on the first line of the script we have to look elsewhere.

Are the two enviroments on different servers, and if so, on different
types of servers. Are you using different versions of ksh.
Are there problems related to $PATH?

To help you furter we need to see what happens in your home environment,
what happens in your production environment, and how that behaviour
differs from what you expect your script to do.

Try running your script with -v or -x to get some more debug
information.

-- 
Stein Arne


Relevant Pages

  • Re: Solaris make utility does not load envfile
    ... > called mk) defined in my environnment (I am using ksh, ... Shell functions and aliases are specific to the shell, ... > to launch commands which are to be launched if the target is not up to ... Usually the environment that it was launched with, ...
    (comp.unix.solaris)
  • Re: pls need some guidance
    ... My home shell is ksh and so as production ... > home environment even if it doesn't in you production environment. ...
    (comp.unix.shell)
  • Re: Newbie procmail/script problem
    ... Dave Hedgehog wrote: ... It seems that your script is not run by ksh. ... You don't need to put those variables in the environment ...
    (comp.unix.shell)
  • check for existence of environment variable
    ... I am having a problem checking for the existence of an environment ... variable on an new HP-UX box under ksh: This script for ... runs under ksh on an older box but will not run under ksh on ...
    (comp.sys.hp.hpux)
  • Re: echod variables showing zero values outside while loop
    ... last command that is running in the current environment. ... the zsh and AT&T implementations of ksh show that behavior. ...
    (comp.unix.shell)