New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

SSH Login w/ Terminal


Post Reply New Thread Subscribe

 
Thread Tools
PrimalYeti

 
PrimalYeti's Avatar
 
Member Since: Jun 22, 2006
Posts: 54
PrimalYeti is on a distinguished road
Mac Specs: MacBook Pro Retina 15" 2.6GHz Intel Core i7, 8GB DDR3L RAM, 512GB SSD, NVIDIA GeForce GT 650M

PrimalYeti is offline
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
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
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


« How to generate profiling code in xcode 3 | Remote X application on MacOS »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Problems with terminal SSH compiling. monolith OS X - Development and Darwin 7 01-16-2009 12:07 PM
SSH problem... moebius OS X - Operating System 2 11-17-2008 11:30 PM
Terminal Help rs2sensen OS X - Apps and Games 1 04-25-2005 11:52 PM
Terminal nbizm 3 for the price of 1 Bo Eddy OS X - Development and Darwin 5 05-04-2004 01:40 PM

All times are GMT -4. The time now is 04:25 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?