Skip to main content

Questions tagged [csh]

The C shell (csh), once one of the two major Unix shells with the Bourne shell. Csh had more advanced interactive feature but has been surpassed by modern Bourne-style shells such as zsh and bash.

62 questions with no upvoted or accepted answers
2 votes
0 answers
983 views

Sync terminal history in c shell

For work, I remote into a linux server that uses c shell rather than bash using Remote Desktop. While in session (lets call it session 1) I'll open up many tabs in a given terminal and type commands ...
Dan's user avatar
  • 21
2 votes
0 answers
218 views

unix c-shell : disk checking

im totally new in shell scripting. I have task to simplify an old c shell script. Basically, the script have 10 devices that using hp-ux and i want to check the disk space in each devices. my ...
exid's user avatar
  • 43
2 votes
3 answers
4k views

CSH and all output (with errors) to file

I need save all output from compilation to file. I have many errors undefined reference and I want see all of these errors. I try makeall >& out, but in file out aren't any of error undefined ...
marcin's user avatar
  • 65
1 vote
0 answers
596 views

How to know what commands are run or what script is sourced when a new terminal is opened?

When I open a new terminal, directory is changed to some path (not in my .cshrc). I want to know from where does this come from. Is there a way to know what commands are run or what script is sourced ...
user1592784's user avatar
1 vote
0 answers
95 views

I want to access one variable defined in one csh script to another csh script. How to implement in c-shell?

Script 1: #!bin/csh set option = $< switch ($option) case 1 : ... breaksw case 2 : ... breaksw endsw script 2 : #!/bin/bash Now how to access "option: variable defined in script 1 , so that ...
Aakash's user avatar
  • 31
1 vote
0 answers
371 views

Linking issues with leptonica and libpng

Working through an install of tesseract without sudo permissions and without a standard bevy of prebuilt libraries. The installation I've got to go through as far as I know follows the path of zlib -> ...
Slater Victoroff's user avatar
1 vote
0 answers
102 views

Why my VM is adding backslash on every backslash in recent command

My company setups a new VM for me to work and I'm not really sure the configuration details of this VM. One interesting thing which is new to me is that I get an annoying backslash on every backslash ...
byefriends's user avatar
1 vote
2 answers
553 views

Why does "ps -p proc1 proc2 proc3" show "-csh", "-tcsh", and "-/bin/tcsh", whereas "ps -p proc[n]" individually all say "tcsh"?

I use tcsh (not csh), and ran pgrep csh | xargs ps -p to see why I appeared to be running csh. A portion of the results: 1529 pts/0 Ss 0:00 -csh 1764 pts/3 Ss 0:00 -tcsh 1979 pts/4 ...
user avatar
1 vote
0 answers
708 views

C shell. Make script wait for Gnome-terminal to finish

I am working on a script that has to process a lot of data. All comes down to 3 commands. I use: #!/bin/csh gnome-terminal -e "ssh $servername1 'command 1'" & gnome-terminal -e "ssh $servername2 ...
Michael Madelaire's user avatar
1 vote
2 answers
406 views

How do I create a rule for custom flag replacement with C shell?

I want to have the following behavior with grep: grep --java <rest of the command> Where --java would either dynamically convert to --include=*.java or internally be equivalent to it. Is there ...
Cris RR's user avatar
  • 11
1 vote
0 answers
426 views

Piping to 'tee' commands prevents changes in environment variables

I have a csh script using which I modify certain environment variables and echo values of these environment variables from within this script. I source this from another script: source "$...
johngreen's user avatar
  • 121
1 vote
1 answer
2k views

csh: redirecting output from foreach

In csh: How do I redirect the output from a foreach-loop to a pipe? This works but uses a temp file: set tmpfile=/tmp/file ...
Ole Tange's user avatar
  • 35.8k
1 vote
0 answers
256 views

csh: How to save the shell environment (env, current dir, shell history) in a file and set it on another shell?

I start interactive terminal using farm (LSF). These terminals get opened on some random host and get closed automatically after 15 days. I want to save the current shell environment (env, current ...
Deepak Yadav's user avatar
1 vote
0 answers
116 views

How to install iwidgets without root access and set the enviornment

Recently, I want to run a script (PWgui) which requires Tcl (Itk). The manual suggests that I have to install iwidgets4 beforehand. I am using the university cluster and don't have any root privileges....
user45857's user avatar
  • 145
1 vote
0 answers
909 views

Verbose output in logfile and simple output on screen?

Let's say I have the following script: script.sh and i want the verbose output in a logfile and simple output on screen. Logfile should contain the csh -v script.sh output, and on the screen should ...
Future's user avatar
  • 179

15 30 50 per page
1
2 3 4 5