Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8427235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:43:57+00:00 2026-06-10T04:43:57+00:00

I have a php scrip, in which i have written the following code $client

  • 0

I have a php scrip, in which i have written the following code

$client = new \Predis\Client();
$client->select(4);
$client->lpush('emailid',$x['to']);


$command = "/usr/bin/php5 -f /var/www/Symfony/src/Ens/NewBundle/Controller/cron.php";

exec( "$command > /dev/null &", $arrOutput );

return $this->render('EnsNewBundle:Email:header.html.twig');

in this I have written an another php script named as cron.php. I want to run that script in background. and I want to check that is this running in background or not. how can i check that

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:43:59+00:00Added an answer on June 10, 2026 at 4:43 am

    You can take the output of cron in a file by > filename and check if it really runs.

    Or check in process list if there is a new php process stating when you run this one.

    You should also look at Codememe bundle here

    Do check open source queuing systems too, they are helpful many times.
    Like Beanstalkd or RabbitMQ

    You can push data to these queues, they can be say “filenames” and other worker takes data from the “tubes” of queues and apply say “php filename” and then picks up next data from queue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php script written which calls an external command using exec which
I have a PHP script which calls methods from a class I have written.
I have written a PHP script which generates an SQL file containing all tables
I am a newbie in php, mysql. I have written a hello.php script, which
I have found the following script which is apparently written using the javascript framework
Starting out with php, I have written a basic authentication script which prints out
In one app, I have an administrative backend written in PHP, which allows to
I have written a simplte PHP login script which starts a session: //Lets start
I have written a PHP script which allows me to modify and update a
I have this PHP script which i'm grabbing images from a directory and displaying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.