Tagged Questions
0
votes
1answer
68 views
Why does my TCSH prompt change after cd?
My .cshrc file contains the following:
set prompt = "%{\033[0;32m%}%S%B\! <%~> :%b%s %{\033[0m%}"
Each time I cd out of my home directory, the prompt formatting resets to display:
33 ...
3
votes
1answer
483 views
Global /etc/profile setenv or export overwriting user settings in .profile
I need to call a modified version of a program in /home/user_name/bin rather than the (older) version in /opt/program_name/current on a CentOS 5.3 cluster. The program creates a tcsh script using ...
1
vote
0answers
68 views
How to make tcsh not insert whitespace in a command that spans multiple lines
Bash does not seem to insert whitespace but tcsh does.
Tcsh
bash-3.2.25$ tcsh -c 'echo $tcsh; echo A\
> B'
6.14.00
A B
Bash
bash-3.2.25$ bash -c 'echo A\
> B'
AB
How can I ask tcsh to not insert ...
3
votes
2answers
464 views
sourcing a file inside a script
I'd like to source a file inside a tcsh script. In code:
#!/bin/tcsh
unsetenv LD_LIBRARY_PATH
source $1
echo $LD_LIBRARY_PATH > temp_file
The expected result: The environment variable set ...
2
votes
1answer
298 views
What's wrong with this csh file?
I don't have any experience writing .sh files. I want to run the pvm2raw utility of this app from the Volume Library.
I get the following error when running build.sh in Ubuntu 10.10.
build.sh is ...
2
votes
1answer
410 views
What does the syntax of these echo commands mean?
I tried to use a copied script, which includes the following command
echo "rc $2" > $WORKDIR/out.dat
I can guess it tries to output some contents to file out.dat. But what does rc $2 mean?
It ...
2
votes
1answer
734 views
Attempting to update Amazon Route53 using a script, but domain is not being updated
I have several Amazon EC2 instances, running Ubuntu 10.04, with which I'd like to use Amazon's Route53. I setup a script as described in Shlomo Swidler's article, but I'm still missing something.
...