skip to main | skip to sidebar

Harish Blog

Running file as background process

All your scripts from a shell as a background process in PHP

exec ("/usr/bin/php yourscript.php >/dev/null &");
The part on the end is the important part... >/dev/null sends the output if your script to nowhere and the & spins it into a background process.

 

Php Php

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Labels

  • Ajax (4)
  • Html (1)
  • jQuery (1)
  • Linux (5)
  • Mysql (13)
  • Netezza (1)
  • Oracle and Php (2)
  • Others (4)
  • Php (15)
  • Shell scripts (1)
  • ಟೆಕ್ news (1)

Blog Archive

  • ►  2011 (1)
    • ►  January (1)
  • ►  2010 (2)
    • ►  October (1)
    • ►  March (1)
  • ►  2009 (11)
    • ►  December (3)
    • ►  October (7)
    • ►  February (1)
  • ▼  2008 (57)
    • ►  October (7)
    • ►  September (10)
    • ►  August (6)
    • ►  July (4)
    • ▼  June (4)
      • Mozilla 3.0 for windows and Ubuntu
      • JWYSIWYG jQuery editor
      • Running file as background process
      • Static Variable and Functions
    • ►  May (5)
    • ►  April (11)
    • ►  March (2)
    • ►  February (7)
    • ►  January (1)
  • ►  2007 (4)
    • ►  December (3)
    • ►  March (1)
  • ►  2006 (4)
    • ►  November (1)
    • ►  October (3)