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

  • SEARCH
  • Home
  • 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 6083787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:26:37+00:00 2026-05-23T11:26:37+00:00

In my program I am executing long lived tail (with -f) via execl. Anything

  • 0

In my program I am executing long lived tail (with -f) via execl.
Anything after that call to execl does not get executed.

Do I need to call/execute this tail in background so that I can do other things in my program?

I usually exit out of my program by ctrl C.

  • 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-05-23T11:26:38+00:00Added an answer on May 23, 2026 at 11:26 am

    The man page for the exec family of calls starts with:

    The exec family of functions replaces
    the current process image with a
    new process image.

    Not entirely sure what you want to accomplish, but it looks like exec isn’t the solution. If you want your first program to remain alive, you’ll need to fork. Does your initial program do something with the output of tail -f?

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

Sidebar

Related Questions

I'm trying to get started with Hibernate, and when executing my program I get
I am calling a command via system(command) call. But no other code is executed
I just executed a program that mallocs 13 MB in a 12 MB machine
My C# program has long executed LINQ query running against MS SQL Server database.
As we all know Java program will start executing from the public static void
At a unix command line, what's the difference between executing a program by simply
I'm executing a shell pipeline from a java program - it'll be something like
Say I have a command line C program which is currently executing, and I
Our Continuous Integration process appears to be executing programs that are in contention for
I cannot get the example Python programs to run. When executing the Python command

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.