Posts Tagged ‘Command Line’

October 4, 2008 1

iPhone 2.1 Hacking – Getting Around

By Levi Senft in iPhone

Now that we have a way into the iPhone it is time to start exploring. If you have ever used Linux, OS X or UNIX the iPhone will have a very familiar layout as it is based on BSD UNIX just like the desktop version of OS X.

Tags: , , ,

July 13, 2007 0

Updated CGI Script Troubleshooting

By Levi Senft in Web

I wanted a larger view area for the CGI troubleshooting script. This throws the output into a text area that fills the entire browser window. #!/usr/bin/perl print “Content-type: text/htmlnn”; print “”; print “”; print “”; system (“python MyPythonScript.py 2>&1n”); print”"; print “”; exit();

Tags: , , ,

May 20, 2007 0

Start, Stop and Restart Apache on Mac OS X

By Levi Senft in Mac

The apachectl command can be found in /usr/sbin, so to start apache: sudo /usr/sbin/apachectl start   To Stop Apache:  sudo /usr/sbin/apachectl restart To Restart Apache: sudo /usr/sbin/apachectl restart

Tags: , , ,

May 20, 2007 0

Refreshing /etc/hosts on OS X

By Levi Senft in Web

On most UNIX/Linux systems I’ve used changes to /etc/hosts are real time. In OS X you most reload the hosts file. This can be done with a single command rather than rebooting your machine. sudo niload -v -m hosts . < /etc/hosts

Tags: , , , ,