Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using python with mac

Status
Not open for further replies.

komyg

Programmer
Dec 13, 2005
68
BR
I'm trying to make a script in python to execute another script (written in perl) in a shell everytime the computer starts.

This script is called smackbook, because when you smack the screen, the computer switches to another desktop.

How can I do that?

Thanks,
Komyg

PS: I think that the script should look like this one written in Tcl/Tk:

set id [open "|terminal" r+]
puts $id "perl smack.pl\n
 
doesn't mac have something analagous to window's autoexec.bat or linux's .bash_profile? just throw it in there and it gets run at startup.



-jeff
lost: one sig, last seen here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top