WebApr 5, 2011 · Users that aren't a member of the group wheel don't need access to /bin/sh, /bin/csh or /bin/tcsh in my opinion. In our situation I don't need this, it's a shared webserver where users can create cronjobs, users don't have shell access, but they can run a shell script from cron. In my opinion that's a security risk. WebJul 4, 2013 · and launch it using. exec ./cshWrapper.csh file2source.sh. it will : launch csh, source your file and came back to the same parrent bash shell. Example : $> ps PID TTY TIME CMD 7065 pts/0 00:00:02 bash $>exec ./cshWrapper.csh toggle.csh file sourced 1 $> echo $$ 7065. where in my case i use the file toggle.csh.
shell exec - How to source a csh script from inside a bash script ...
WebOct 18, 2024 · My experience is that /bin/sh will struggle with full POSIX compliance on just about any Unix/Linux variant you name. For me, this certainly includes: FreeBSD /bin/sh; Debian /bin/sh (dash); RedHat /bin/sh (bash, but behaves differently due to its invocation name); The common denominator with these is not POSIX. WebAug 28, 2010 · hi, i have a script that runs on bash and would like to run it on a machine that has csh and bash. the default setting on that machine is csh. i dont want to change my code to run it with a csh shell. is there any way i can run the script (written in bash) on this machine? in other words is there... 10. Shell Programming and Scripting relationship by design
shell - How to use if on csh FreeBSD from test if file is older then …
http://bsdwiki.reedmedia.net/wiki/Create_a_simple_Bourne_shell_script.html In comments, you've indicated that you're on Ubuntu, and that /bin/csh is a symlink to /etc/alternatives/csh, which is a symlink to /bin/csh. The csh shell originated on BSD Unix, so it's not surprising that csh is an indirect symlink to /bin/bsd-csh. It goes back to 1978 or so, before it became common for Unix program to report their own ... WebJun 1, 2016 · 1 Answer. It sounds like csh on your system is really tcsh and it's reading your config when you don't intend it to. Either that or you've configured a history file for both tcsh and csh. If csh is tcsh, you could invoke csh with csh -f to skip reading your .tcshrc file. I'm not sure you can configure it to read an arbitrary file before ... productivity blogs