Take the 2-minute tour ×
English Language & Usage Stack Exchange is a question and answer site for linguists, etymologists, and serious English language enthusiasts. It's 100% free, no registration required.

What is the correct verb construct in the following sentence?

Scripts ____ under cron have an empty environment.

Cron is a program that runs scripts at scheduled points in time (e.g. every hour). So the verb should be passive and continuous, and since the action continues through the present I believe the correct form is the present participle: running. Is this correct?

share|improve this question
add comment

3 Answers 3

up vote 2 down vote accepted

"Scripts running under cron" sounds the most natural of those choices. But isn't the problem that the verb run isn't strictly appropriate?

Wouldn't "scripts scheduled by cron" be much better than any of them?

share|improve this answer
1  
Not in this context, since it is the cron daemon process that sets up the environment and starts the script, i.e. "runs" it. The sentence is concerned with the setting up and starting aspect more than the scheduling aspect. –  thebjorn Nov 6 '12 at 17:04
    
@thebjorn: Then is "under" the wrong preposition? "Scripts run by cron" might be more accurate. –  pdr Nov 6 '12 at 17:08
    
I believe "under" is used because the implementation of processes uses the terms parent-process and child-process, where the parent process (the cron daemon process) starts the child process (the script). Generally, although not in this particular case, child processes inherit their environment (and permissions etc.) from the parent process. I agree that "Scripts run by cron" would be easier to understand, without any loss of precision. –  thebjorn Nov 6 '12 at 17:28
add comment

If you grep the system documentation for /\b[Rr][ua]n(?:ning)\s+under\b/, you will find that both run under and running under occur quite frequently.

I wouldn’t say there is any clear winner here between the past and present participles.

share|improve this answer
add comment

If I were writing this, I'd probably use a different word altogether, e.g.:

Scripts executed by cron have an empty environment.

share|improve this answer
1  
Ick! Execute is a big long fancy word compared with run. –  tchrist Nov 6 '12 at 23:19
    
Perhaps, but then my whole point was that run is probably not the best word to use here. –  Andrew Lambert Nov 6 '12 at 23:29
    
hmmm...man says (as in Unix manual) cron = daemon to execute scheduled commands. I think though that the environment is not totally empty, it's just been "cleaned" to improve security. –  Chris Nov 7 '12 at 4:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.