Skip to main content

pkgacct

Comments

9 comments

  • JacobPerkins
    Hello, The error here states the problem: -bash: /scripts/pkgacct: /usr/local/cpanel/3rdparty/bin/perl^M: bad interpreter: No such file or directory If you notice, there is a '^M' character at the end of the interpreter in /scripts/pkgacct. This seems that it may have been opened in a Windows Editor, notepad, or something like this. You will need to open / edit '/scripts/pkgacct', and remove the '^M' from the first line in the file.
    0
  • oozetime
    On file: #!/usr/local/cpanel/3rdparty/bin/perl # cpanel - scripts/pkgacct Copyright(c) 2014 cPanel, Inc. # All rights Reserved. # copyright@cpanel.net [url=http://cpanel.net]cPanel, Inc. # This code is subject to the cPanel license. Unauthorized copying is prohibited Searching ^M in pkgacct file Result: [ "^M" not found ]
    0
  • cPanelMichael
    Could you verify if you did in-fact manually edit that file in a Windows editor such as notepad? How are you checking the file for the '^M' character (e.g. through a Windows editor again or through vi)? Sometimes the "dos2unix" utility will help. EX: yum install dos2unix dos2unix /path/to/file
    Thank you.
    0
  • oozetime
    See: - URL removed -
    0
  • JaredR.
    Friendly Moderator Note Please avoid linking to other sites to provide screenshots. If a screenshot is necessary, please add it directly to your post as an attachment. Generally, a screenshot is only necessary if graphics are important to the problem. If shell output is what is being discussed, there is a better way to share it: In most cases, when handling shell output, it is much better to copy and paste the text, rather than making a picture of text. If you are using PuTTY, all you need to do is click and drag to highlight the text, and the text is automatically copied. You can then paste the text into the message. You can then wrap the output in CODE tags, which will display the text in a fixed-width font, just like on your terminal. The advantage to this is that the text is displayed in a readable size, no matter what browser or screen size is in use, and other users can copy and paste relevant portions of the output. That is not possible when a picture of text, instead of the actual text, is presented.
    0
  • oozetime
    Sorry, I had sent a copy of the file, pastebin is a site code and not images. But I solved this problem, thx!
    0
  • cPanelMichael
    [quote="oozetime, post: 1714691">But I solved this problem, thx!
    I am happy to see you were able to resolve the issue. Would you mind sharing the solution? Thank you.
    0
  • oozetime
    Of course not! What did I do? Entered into another WHM, I copied the code and pasted using nano. It would be interesting that you make available links to when these things happen. Imagine if I dont have another whm available?
    0
  • JaredR.
    Yes, I understand that pastebin is for code, not images, but I wanted to mention it not only for your reference but for other users who may view this thread in the future. I am glad to see that you solved the problem.
    0

Please sign in to leave a comment.