Home Forums Software InstaDMG Calling InstaUp2Date from bash script

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #380712
    psychozz
    Participant

    With InstaDMG b2 and the version of InstaUp2Date that comes along with it, calling instaup2date.py from a bash script was no problem at all. But now with rc1, I get the following error:

    [code]Traceback (most recent call last):
    File “instaUp2Date.py”, line 716, in
    main()
    File “instaUp2Date.py”, line 671, in main
    thisController.findItems()
    File “instaUp2Date.py”, line 329, in findItems
    progressReporter = displayTools.statusHandler(taskMessage=’ ‘ + thisItem.displayName + ‘ -‘)
    File “/Work area/InstaDMG/10.6/AddOns/InstaUp2Date/Resources/displayTools.py”, line 94, in __init__
    self.update(taskMessage=taskMessage, statusMessage=statusMessage, progressTemplate=progressTemplate, value=value, expectedLength=expectedLength)
    File “/Work area/InstaDMG/10.6/AddOns/InstaUp2Date/Resources/displayTools.py”, line 110, in update
    self.outputChannel.seek(-1 * (len(self.lastTaskMessage) + len(self.lastStatusMessage) + len(self.lastProgressMessage)), 1)
    IOError: [Errno 29] Illegal seek[/code]

    I don’t know any python, but I think it has to do with the progress indicator of the checksumming. Is it possible to run instaup2date.py silent so it doesn’t show the progress?

    The script that calls instaup2date.py is run nightly to rebuild my images if there have been any changes to the catalog files since last run, so I don’t need to see the progress of the checksumming.

    #380713
    larkost
    Participant

    The problem is not calling from bash, it is that you are calling it from something other that the terminal, so cron or launchd. Try piping the output to a file, and you will probably get better results. That is untested, but in that code I did put in explicit checks to see if the output destination is a file.

    #380714
    psychozz
    Participant

    Ok thanks! Will try that when I get back to work on monday!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed