Re: Payload free packages Printer script
Re: Payload free packages Printer script
- Subject: Re: Payload free packages Printer script
- From: Rusty Myers <email@hidden>
- Date: Wed, 1 Jul 2009 15:52:51 -0400
Thanks all.
@nick
I removed sudo
@greg
I added the shbang, it helps
@bryan
Admin is set on the installer
@iceberg-dev
Its not a stupid question, I'm just ignorant in programming. Shell
scripting is one thing I can do, outside that I'm lost. If there is a
good tutorial you can point me to, I would try to find the time to
learn. Thakns
It seems that my scripts were not built with the shbang, and that was
the error. I was writing the scripts with shbang, but it didn't
translate to the installer. I'm going to continue my testing, but so
far, it's working
Thanks all.
On Tue, Jun 30, 2009 at 3:05 PM, Iceberg-Dev<email@hidden> wrote:
>
> 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