Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

238
Views
Tcsh script does not exit

I am running CentOS 7, and I am having problems with tcsh scripts.

I have a simple script called quittest.

#!/bin/tcsh
echo "Simple Test"
exit 0

When I run quittest from the terminal, I get

"Simple Test"

And it does not exit. I can Control+C to exit. I check on the status of this with:

ps aux

and it shows quittest with a state of S+ (foreground interruptible sleep). If I change this script to bash, or sh, it runs fine, and exits as expected.

I cannot just switch to another shell, because my users have very complex scripts written with tcsh. We are replacing OpenSuSE 12.3 with CentOS 7.

Tcsh version 6.18.01-7. SELinux is set to permissive for testing this issue.

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Turns out, my ~/.history file was the issue. I deleted that and the script ran as intended. Must have gotten hung up with a permissions issue at some point.

over 4 years ago · Santiago Trujillo Report

0

I had the same problem on all my Fedora 23, tcsh version 6.19.00-3.fc23.
Reason was ~/.history.lock file. Removing lock file resolved this issue.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!