csh Questions
5
Solved
I was wondering if there is a way to source a csh script from a sh script. Below is an example of what is trying to be implemented:
script1.sh:
#!/bin/sh
source script2
script2:
#!/bin/csh -f...
3
Solved
Firstly, in my defense: I'm only using csh because my group has a lot of legacy csh. We do scientific programming; a lotta folks apparently learned to use csh back in the SunOS/Solaris days, and di...
4
I wanted to know why i am seeing a different behaviour in the background process in Bash shell
Case 1: Logged in to Unix server using Putty(SSH)
By default it uses csh shell
I changed to bash sh...
11
Solved
Not until midway through a 3 hour build script, I'll remember that I want to see something at the beginning of the output after it's done. At this point I've exceeded the number of lines in my term...
Harwin asked 20/7, 2010 at 2:37
1
Solved
I have this very simple csh script.
#!/bin/csh
echo "Hello World!"
echo "How are you today?"
But I am getting the error ": Event not found.
What is wrong?
Osteen asked 4/10, 2013 at 6:33
2
Solved
I've got a shell script that looks like this:
foreach dir (i686.* amd64.*)
# commands
end
The problem with this script is that if there are no directories matching those names then I get the fo...
9
Solved
We have Oracle running on Solaris, and the shell is by default csh. So the login script sets the oracle_home, oracle_sid in csh also. But I don't like csh and want to use bash to do my work. ...
1
Solved
From what I've read, setenv in csh and export in bash are equivalent. However, I found some strange issues while working with the two.
When I open putty and start typing:
setenv TEMP yes
echo $T...
5
Solved
i'm trying to write a for loop that executes 2 scripts on FreeBSD. I don't care if it's written in sh or csh. I want something like:
for($i=11; $i<=24; $i++)
{
exec(tar xzf 'myfile-1.0.' . $i)...
1
I have a csh script, which is executed using "source", and passes all its arguments to a program:
% alias foo source foo.csh
% cat foo.csh
./bar $*
# Some uninteresting stuff
If I run source foo...
3
Solved
As the title describes, what's the proper way to do an or-assignment (eg a= b || c) in shell scripting, specifically csh vs bash? I cannot test this, so perhaps the example above works.
I thought...
Shawnshawna asked 2/6, 2013 at 0:13
2
Solved
Yes. I know I shouldn't be using it for scripting. Yes. It is rubbish. I am indeed a fool.
Nevertheless.
I'd like to see the commands the script is executing, for debugging purposes. I think you ...
2
Solved
I need to change every occurrence of ! to : as field separators in a group file.
sed 's/!/:/g' filename > newfilename
But I get the error /: Event not found?
4
Solved
I am converting a csh script to a python script. The script calls a memory-intensive executable which requires a very large stack, so the csh script sets the stacksize to unlimited:
limit stacksiz...
3
Solved
I have some code which works for me, but when I gave it to some colleagues, it broke. They're using tcsh whereas, as far as I can figure, I'm using csh.
I've tried:
csh -v
csh --version
csh -V
cs...
1
Solved
I don't want to use tcsh, but unfortunately have no choice in this situation. So please no "use another shell" answers!
I'm currently trying to check that an environment variable is both set, and ...
Mettlesome asked 12/11, 2012 at 12:4
2
I want to have a custom CSH prompt when I am inside a Git repo.
I want the prompt to look like this if I am not in a git repo
host_name>$
But when I am inside a Git repo must turn into some...
1
Solved
I would like to pass variables to a csh script by using "qsub -v" command. I understand we can list the parameters-value pairs as below,
qsub -v par1=value1 par2=value2 myScript.csh
Does anyone...
6
Solved
I want to count the numbers of hard tab characters in my documents in unix shell.
How can I do it?
I tried something like
grep -c \t foo
but it gives counts of t in file foo.
2
Solved
3
What does an ampersand at the beginning of a line do in csh? It seems to be ignored (with no error message), but why?
1
Solved
I have an array
arr=( x11 y12 x21 y22 x31 y32)
I need to sort this array to
x11 x21 x31 y12 y22 y32
So, I need to sort both alphabetical and numerical wise
How do I perform this in shell scr...
2
Solved
I am trying to call my linux executable from shell script. Before calling this executable, I want to set LD_LIBRARY_PATH with specific values. My shell script is as below:
Parent.sh (contains 2 li...
3
Solved
I have put together a small example here just to replicate the problem.
I have a strongly typed partial view _Name.cshtml:
@model ValidationInPartial.ViewModels.MyViewModel
<h2>@ViewBag.Mes...
Warford asked 24/6, 2011 at 9:20
2
Solved
I am calling SQL*Plus from Linux C Shell:
sqlplus username/password @file.sql var1 var2 var3
If I pass a string as var1, how long can this string be?
Is it governed by the OS? In this case:
Li...
Rabin asked 27/7, 2011 at 14:40
© 2022 - 2024 — McMap. All rights reserved.