| OS X - Development and Darwin Discussion and questions about development for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Jun 21, 2006
Posts: 54
![]() Mac Specs: MacBook Pro Retina 15" 2.6GHz Intel Core i7, 8GB DDR3L RAM, 512GB SSD, NVIDIA GeForce GT 650M
|
Hey everyone;
Twice a day I need to login to an apache server using ssh and run a "restart_apache" command. What I was hoping to find is a script that can log me in (username and password automated), run the command then log me out. Can anyone help me out please. I play WoW on a Mac! |
| QUOTE Thanks | |
![]() Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,531
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff
|
Use ssh via rsa key-gen and then you can do something like..
ssh user@host 'command' btw, why can't you just add restart_apache to crontab on the local machine? mike This machine kills fascists Got # ? phear the command line! |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Problems with terminal SSH compiling. | monolith | OS X - Development and Darwin | 7 | 01-16-2009 11:07 AM |
| SSH problem... | moebius | OS X - Operating System | 2 | 11-17-2008 10:30 PM |
| Terminal Help | rs2sensen | OS X - Apps and Games | 1 | 04-25-2005 10:52 PM |
| Terminal nøøbizm 3 for the price of 1 | Bo Eddy | OS X - Development and Darwin | 5 | 05-04-2004 12:40 PM |
All times are GMT -4. The time now is 10:56 AM.
Powered by vBulletin