10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have a text file (say, declarevars.txt) that contains multiple lines that are essentially meant to be variable declarations:
set arr1 = (var1a var1b var1c)
set arr2 = (var2a var2b var2c)
.
.
.
I want to be able to read this text file within a csh (sorry) script and have that... (2 Replies)
Discussion started by: arjaydj
2 Replies
2. Shell Programming and Scripting
I'm trying to make a dialog window that prints the output of grep that takes the output of find. Unfortunately my nested backticks don't work.
Here is the dialog window:
dialog --stdout --title "test" --backtitle "test" --msgbox "Test:\n `grep -l "${tablica}" `find $string``" 16 60I think I... (2 Replies)
Discussion started by: Starting_Leaf
2 Replies
3. Shell Programming and Scripting
Hi Guys,
I have a a bash script and i am exporting a variable in it.
I am calling a csh script from this bash script.
The variable "ABC" will be visible in csh script.
ks.bash
export ABC = abc
./kp.csh
ab.csh
echo $ABC
setenv ABC =cde (i want to assign this value to ABC only if... (4 Replies)
Discussion started by: vdhingra123
4 Replies
4. Shell Programming and Scripting
Hi,
I am having a primary script which is Bash based. I am calling a csh script from it.
Now, their are some variables defined in my bash script which i need in csh.
I am unable to do so. Is it possible ? (2 Replies)
Discussion started by: vdhingra123
2 Replies
5. Shell Programming and Scripting
Anyone knows what is the max limit of number of environment variables in Csh? I have a script that when run causes the shell to stop responding to any command like:
ls
/bin/ls: Argument list too long.
And I guess the reason is I passed the max limit for number of environment variables... (1 Reply)
Discussion started by: mohy
1 Replies
6. Shell Programming and Scripting
I have done something like this
set phases = "a b"
set phases = "phases="$phases
echo $phases
I get
phases=a
instead of
phases=a b (3 Replies)
Discussion started by: kristinu
3 Replies
7. Google Chrome OS
sdfdefgsrg (2 Replies)
Discussion started by: frankycool
2 Replies
8. UNIX for Dummies Questions & Answers
Hi All
How can i control for loop with two different variables in csh shell
Regards
Nikhil (1 Reply)
Discussion started by: Nikhilindurkar
1 Replies
9. Shell Programming and Scripting
Hi
I like to assign a command string to a variable to execute.
In this case,
set sshexec_parent_pid="ps -ef | grep $$ | awk '/bash -c/ {print $3}' | sort | head -1;`"
echo $sshexec_parent_pid ;
But I can't seem to get it to work.
It gives me
sshexec_parent_pid: Undefined variable.
... (2 Replies)
Discussion started by: mpc8250
2 Replies
10. Shell Programming and Scripting
Hi ..
I have a dynamic script called from a programming language called Powerhouse (4GL).
The module, called QUIZ, allows the user to call shell commands from within it...
i.e.
!rm -f mipss156t2cmd1.bat mipss156t2tmp1.txt
!printf '#!/bin/csh\n' > mipss156t2cmd1.bat
!printf 'setenv... (0 Replies)
Discussion started by: ElCaito
0 Replies