How can I run a csh script from a tcl script?
I am trying to run a csh script from a tcl script. The tcl script below calls a csh script #!/usr/bin/tclsh set scripts_path /scratch/TCL_scripts/scripts_adders set synthesis /scratch/TCL_scripts/synthesis.csh set files [glob -directory $scripts_path *] split $files set files [lsort $files] set i 1 foreach script $files { puts "hello" # puts [pwd] exec /bin/csh -c $synthesis puts $i } And the (begining of the) csh file is below: #!/bin/csh -f echo abcdefgh When I only execute the csh file from my unix terminal, it works fine. When I call my Tcl script, it runs and indeed writes "hello" and