csh

  1. K

    C Modifications on [T]csh

    I've introduced some modifications on [T]csh. Functions (only for scripts) Read files into a variable Comments on interactive sessions Tell whether stdin is empty I'd appreciate for any feedback, suggestion or contribution. Contributions of any kind are very welcome. A key [T]csh developer...
  2. K

    Shell csh: Difference between redirections?

    In csh shell, what's the differency between the following redirections?; mycommand >>& "$log_file" and mycommand >> "$log_file" 2>&1
  3. byrnejb

    Solved freebsd-version and uname report different versions of FreeBSD

    We have an iocage administered jail that was recently updated to 13.2 from 13.1. However, we see this: [root@vhost02 ~ (master)]# iocage list +-----+--------+-------+--------------+--------------------------------+ | JID | NAME | STATE | RELEASE | IP4 |...
  4. elgrande

    Other csh bug?

    Is the following intended or a bug in csh? This code results in make being canceled: cd /src make buildkernel & ; exit Why?
  5. zc4r

    How to start tshark on ttyv1 and ttyv2 on boot

    I'm trying to get tshark to load before login on my FreeBSD 13.1 server. Preferably I would want ttyv0 to act as the server system notifications, ttyv1 should run on boot: tshark -i re0 -t ud -P -V -u hms -b interval:86400 -w /tmp/tshark_re0_PV.pcap and ttyv2 should run on boot: tshark -i re0 -P...
  6. I

    jails How do I "setenv PATH" in a jail, preferably using zsh?

    If I execute the command: setenv PATH "/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin:/root/.cargo/bin" after going into the jail by "jexec 1", it would work. However, I'd like to make it sticky. I tried many ways but nothing works. Further, preferably, I'd like to do...
  7. IPTRACE

    Solved Read user history at startup /etc/csh.login

    Hi, I need to run history 25 during user logging. Of course, output depends on the specific user logging. Generally, I've set command alone as I typed but no output at startup. How can I do that? The following command does not work as I need. sudo -u my_login csh -c 'history 25'
  8. sidetone

    Solved In csh, how would I switch prompt color depending on background?

    I tried looking in how to load a separate configuration file, so I could use one for a dark background, and another for a white background for the same user. I want a dark prompt for xterm, which has a white background, and a yellow prompt for the dark tinted transparent rxvt-unicode...
  9. vermaden

    HOWTO: Ghost in the Shell - Part 2

    I would like to share HOWTO in Ghost in the Shell series about efficient working in the UNIX shell environment. Ghost in the Shell - Part 2 https://vermaden.wordpress.com/2018/07/08/ghost-in-the-shell-part-2/
  10. tony33

    Shell c shell help needed.

    Hi, I am working on writing a c shell script. It's this the 3rd script I would be writing. I am fairly new to c shell but not new to programming. I need help to figure out how to use regular expressions in c shell. I am used to doing it in C++ and PHP. /.+[a-z]/ etc I need to know how it...
  11. E

    Solved syscons configuration issue

    Hello, my problem is related with scrollbuffer size in my csh. I have figured out that i must use sc instead of vt, and already done it. Also I can increase my scrollback size using vidcontrol -h <number> command. The current problem is that I can't save this result after rebooting. Another...
  12. athan

    Need help with key bindings in .cshrc

    I want to enable some common key bindings for t/csh on my dedicated server (freebsd 11 rel) but noticed some really weird behavior! Let me explain the situation. My .cshrc follows umask 22 set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin $HOME/bin) setenv EDITOR vi...
  13. A

    Weird behaviour (df/mv command not found

    Hi guys/gals , I've upgraded my install after latest sec. advisories ( 10.3) and now I'm getting df : Command not found mv : Command not found PATH seems to be fine. Also calling it with /bin/df gives me the same output. Anyone with the same problem?
  14. rbelk

    Share your .tcshrc file

    I decieded to start this thread after reading the thread 'Which shell do you use?'. I'll start, mine is below. # .cshrc - csh resource script, read at beginning of execution by each shell # # # -- Set up command aliases alias searchports 'find /usr/ports -type f -name pkg-descr | xargs...
Back
Top