Coldfront Labs

26/06/2009 - story

UNIX Quick Tip: Daisy chaining commands in the terminal

I discovered this this morning. I'm working on a tomcat application and I have to stop the server, deploy some theme changes with a script then start the server up again (I know, it's a dumb setup but I didn't write the app, I'm only using it ;-) So I'd type "stopcp" to stop the server, then the deploy skin script, then I'd type in "startcp". But (and this may have been obvious to everyone but me) if I put a semi-colon between the commands, I can have all three run one after the other automatically.

Example:

stopcp; deployskintemplate -t classic; startcp

Saves me from having to do three things. I can just sit back and watch it go. Hopefully you find this useful!

Latest Tweets

  • #dcsf picture time! 19 weeks 4 days ago
  • What kind of team building stuff do you do remotely? (since not everyone is local) #magicteams 19 weeks 4 days ago
  • Really enjoying Drupalcon, learning so much! Need time to digest the info....and the awesome food! 19 weeks 5 days ago
  • Holy crap! http://tinyurl.com/yycqls6 Live NHL games on Boxee :-D #iamcanadian 19 weeks 6 days ago
  • Just getting to my second session at #dcsf and I've already lost my pen :-S 19 weeks 6 days ago

Poll

Do you plan on switching to Drupal 7 when it's released?:
Copyright © 2010