in reply to Re^4: schedg software
in thread schedg software

Your markup is confusing, but I assume that your error message actually looks like:

Argument "[1000]" isn't numeric in getpwuid at ./schedg_client.pl line + 89

You will notice an extra set of square brackets for your group. Most likely you put them there, but getpwuid does not know about square brackets. Don't put them there, or remove them.

Replies are listed 'Best First'.
Re^6: schedg software
by calvinlyp (Novice) on May 20, 2009 at 09:44 UTC

    i remove the square bracket but it still contain the error

      i remove the square bracket but it still contain the error
      what is the exact error you are getting

      just try and ignore(comment) the part of code where they check and set the uid and gid.
      and make sure that you have other arguments to the program passed correctly and check whether the program works
      If not go through the code of the program and try to understand what is going inside
      If you couldn't understand, just use perldoc to search and understand the bits and pieces of code

      For aiding other monks about this code this OP is talking about, I put it here


      Vivek
      -- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
      Do you have a user named 1000

        according to how i use the command id -a,it return me that my current user is with id 1000

        the error is: Cannot get uid for 1000 at ./schedg_client.pl line 96, <HI> line 14.