Archive for the ‘Automation’ Category

How to Set Up the IP Power 9258

Friday, January 1st, 2010

I bought this guy in able to reboot my computer over the internet.

When set up it provides a web page you can log into to control each power outlet on the device and/or set a schedule for when each outlet comes on or turns off.

The directions were very confusing, so here’s a quick write-up of how I got it working for myself:

  1. Plug the 9258 into the wall.
  2. Connect an appliance like a lamp to one of the outlets on the 9258 to test it. (default is off so your lamp won’t be on yet)
  3. Plug the 9258 into your router via an ethernet cable.
  4. Now log into your router and look at the attached devices to find the IP address assigned to the 9258. (For me it was 192.168.1.9. The 9258 presented the name “new-host-2″.)
  5. Type that IP address into the address bar of your browser.
  6. Enter the default user name and password when prompted (user name is admin and password is 12345678)
  7. You’re in! Try turning on an off your lamp.

How to Fix – xcopy insufficient memory error

Friday, January 1st, 2010

The best fix I found is a superior program xxcopy which has as the same switches as xcopy but doesn’t hit this error. So you just download it, install it, and change your xcopy command to xxcopy and everything just works.

Command Line Arguments for Goldmine

Thursday, September 14th, 2006

Yes, it turns out you can give the GoldMine executable (gmw7.exe for me) some parameters when you launch it. Some of them are even useful! Who knew?

Doug Castell says in this forum post:

Here are the ones I know off the top of my head:
/u: pass the username
/p: pass the password
/b: pass a folder in which remote installation files reside. Legacy
feature, no longer applicable(?)
/c: pass a folder in which contact files reside: example:
/c:c:\apps\goldmine\common\
/t: ‘thin client mode’. removes a number of bandwidth-heavy operations.
most appropriate for thin client users (thin bandwidth network/vpn, graphon,
term server)
/m: pass a recorded goldmine macro number to run
/s: run in silent server mode. options include /s:DDE and /s:GOLDSYNC

Please comment if you can think of any others. Of course it’s never been documented before!

As an example here’s how I get GoldMine to run a macro (even works if GoldMine is already running.)
J:\gmw7.exe /m:803

803 is the number at the end of the macro file in the J:\macros directory (with J:\ being GoldMines system directory for me.) The full name of that file is gpinero.803.

This GoldMine support page also lists a few more switches for you.

[tags]GoldMine, Macro, GoldMine Macros, GoldMine Help[/tags]

NeroCmd.exe and Python – Automating the Burning Process

Wednesday, January 4th, 2006

Nero* includes a nice little executable that lets you control CD/DVD burning via the command line. It is called “NeroCmd.exe” and should be located somewhere in your “C:\Program Files\ahead\Nero\”.

Just call it from the command line with no arguments and it will dump a few pages of documentation** at you to get you started. i.e.

>"C:\Program Files\ahead\Nero\NeroCmd.exe"

As an example of how to put all of its many parameters together, I used it to burn an ISO file to a DVD like so:

C:\Program Files\ahead\Nero>"C:\Program Files\ahead\Nero\NeroCmd.exe" --write --drivename D --real --dvd --image "C:\BACKUPTEMP\NON_COPYRIGHTED_FILE.ISO"
--speed 6 --underrun_prot --no_user_interaction

If you’re curious what you could use something like this for, I wrote a little Python script that will read all of the files in a folder, pull out an ISO file, and burn it to a disk. It runs once a night. After the run it tells me the name of the file it burned and pleads with me to insert a blank disk for its next run.

"""
Autoburn.py

Greg Pinero
January 2006
--
A little script to automate the burning of my ISO files to DVD.

"""
import sys
import os
import shutil
#-----------------------------------------------------------------------------
#USER SETTINGS:
StoredISOsPath=r'C:\DVDBACKUPTEMP'
BurnedISOsPath=r'C:\DVDBACKUPTEMP\haveonDVD'
NeroCMDPath=r'C:\Program Files\ahead\Nero\NeroCmd.exe'
#-----------------------------------------------------------------------------

for filename in os.listdir(StoredISOsPath):
    if filename.split(os.path.extsep)[-1].upper()=='ISO':
        fullisopath=os.path.join(StoredISOsPath,filename)
        launchstring=r'""%s" --write --drivename D --real --dvd --image ""%s"' % (NeroCMDPath,fullisopath)
        launchstring+=' --speed 4 --underrun_prot --no_user_interaction' #psuedo line break for code
        resultcode=os.system(launchstring)
        print resultcode
        if resultcode==0:#sucess,move iso
            shutil.move(fullisopath,os.path.join(BurnedISOsPath,filename))
            print "I sucessfully burned %s to the disk in the tray, please label it accordingly"
            print "Please insert a blank DVD into the drive."
        else:
            print "I hit an error, most likely there was no disk in"
        pause=raw_input("Press enter to exit")
        sys.exit(resultcode)
print 'no files found'
pause=raw_input("Press enter to exit")
sys.exit(0) #no files found

*You could try CreateCD if you want a free alternative to Nero that offers command line control.
**I read that more documentation is available from Nero, but I didn’t need it.


Update:
If you get an error from Nero command from my script try changing this line:
launchstring=r'""%s" --write --drivename D --real --DVD --image ""%s"' % (NeroCMDPath,fullisopath)
to:
launchstring=r'""%s" --write --drivename D --real --DVD --image "%s"' % (NeroCMDPath,fullisopath)

os.system is a delicate lady indeed!