Results 1 to 1 of 1

Thread: Script for printers.conf?

  1. #1
    Join Date
    Feb 2012
    Beans
    2

    Script for printers.conf? [SOLVED]

    Hello everyone! I'm new to ubuntu and a lil bit scripting, though I'm in a hurry to get a proper fix to my problem. Just want to point out this script has to be able to work on other computers aswell with ubuntu installed.

    What i want to do is make a script that runs from the Desktop and goes to printers.conf in /etc/cups and edit a string and replace it. So far what I've done is creating two script files.

    one that contains stopping cups, then using sed to replace the name i want and then booting up cups service again.

    Doing so requires sudo command, so it asks for the password, so I type it in. After doing so the script fails doing what i want. So i created another script file that says "sudo ./script.sh" and it works. But i want it to be in the same file.

    I'm sorry if it's fuzzy.

    Any help appreciated.

    [Edit: Problem solved]

    // Vollz
    Last edited by vollz; February 15th, 2012 at 02:38 PM. Reason: Solved

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •