• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Payload free packages Printer script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Payload free packages Printer script


  • Subject: Re: Payload free packages Printer script
  • From: Iceberg-Dev <email@hidden>
  • Date: Tue, 30 Jun 2009 21:05:35 +0200


On Jun 30, 2009, at 3:46 PM, Rusty Myers wrote:

Hello,

We have a bunch of printers here. I wanted to make a package that
would give users the choice to install the printer they want. I
thought a payload free package could be used to do this.

I have tried to create a package that installs a file to /tmp and has
a postflight script that adds the printer. The postflight script is
very simple, it echo's one line with the printers name and then has
the lpadmin command to add the printer.

I can't get this working correctly. It says the postflight script has
failed. Anyone have a suggestion? I've looked at PrinterSetup from
lucid systems, but it's more complex than what I need.

Also, the printer is not already added to the system at the time of
running the script. The script also works from the command line. It
has execute permissions.

My Script:
echo "Add 201 Chambers Color"
sudo lpadmin -p "201_Chambers_Color" -E -v lpd://192.168.5.32 -P
"/Library/Printers/PPDs/Contents/Resources/Dell Laser Printer
5210n.gz" -L "201 Chambers Color"

Stupid question:

Since you basically want to run a command line with very specific data (like the IP address), why do you need a package?

Why not just quickly code a Setup Assistant?

There are even some sample projects available (OK a bit old though):

http://s.sudre.free.fr/Software/CVSSUA.html

http://s.sudre.free.fr/Software/AssistantKit.html


_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Payload free packages Printer script (From: Rusty Myers <email@hidden>)

  • Prev by Date: Fwd: How to get package title using shell script
  • Previous by thread: Re: Payload free packages Printer script
  • Next by thread: Show nested package progress
  • Index(es):
    • Date
    • Thread