Sponsored Content
Top Forums Shell Programming and Scripting Csh Problem using spaces in string variables Post 302452702 by kristinu on Sunday 12th of September 2010 08:48:07 PM
Old 09-12-2010
I need to create the variable containing the string so that I can use it to run a program from within the csh script.

Code:
/nethome/chrisd/HSeis/TommyCD/TommyCD-1101/bin/raytrac \
   vmod=npt02-z30.vmod \
   srfile=jcdint.sc \
   rcfile=jcdint.rc \
   phases="SP FS" \
   level=twop \
   format="X T" \
   dtau=0.1 \
   mdacc=0.5 \
   mindist=0.2 \
   maxitertp=25 \
   ray=npt02-z30.ry \
   out=npt02-z30.tx \
   vrb=medium |& tee npt02-z30.log

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to pass CSH variables up to the parent?

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

2. Shell Programming and Scripting

how can i pass parameter with spaces to csh script

Hello all i need to pass to my shell script parameter that looks like "2 3 3" inside the script i need to use this string that looks like this "2 3 3" but when i try to print the script im getting syntax error , this is my script : set s = $1 echo $s (1 Reply)
Discussion started by: umen
1 Replies

3. Shell Programming and Scripting

csh script for deleting extra spaces in text file

I am new to scripting and I needed to know if there would be an easy way to delete extra spaces in a text file. I have a file with three rows with 22 numbers each, but there is extra spaces between the numbers when it gets output by this program AFNI that I am using. What script would help delete... (2 Replies)
Discussion started by: hertingm
2 Replies

4. UNIX for Dummies Questions & Answers

For loop control with two variables in csh shell

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

5. Shell Programming and Scripting

Max number of environment variables in Csh

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

csh and variable values with spaces

my working shell is csh and even though if I try to run my script in plain sh, it behaves the same way. Here's a simple script: #!/bin/sh desc='"test my changes"' cmd="echo \"$desc\"" $cmd I want $desc to be passed as an argument to another command, but csh apparently doesn't like spaces in... (5 Replies)
Discussion started by: iskatel
5 Replies

7. Shell Programming and Scripting

How to access the bash variables in csh

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

8. Shell Programming and Scripting

How to use ifdef for bash variables in csh environment?

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

9. Shell Programming and Scripting

Read variables from a text file for use in csh script

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

10. Shell Programming and Scripting

Issue nesting variables in csh.

The variables given are already defined ($file1-$file3, $obsid1-$obsid3, and $n=3). When I go to run the code, the terminal outputs "Missing }." I believe the error is with the nesting of variables. It would save a lot of time getting this while loop working. set i = 1 while (${i} <=... (5 Replies)
Discussion started by: ojdefdidit
5 Replies
CPAN::Meta::Check(3)					User Contributed Perl Documentation				      CPAN::Meta::Check(3)

NAME
CPAN::Meta::Check - Verify requirements in a CPAN::Meta object VERSION
version 0.004 SYNOPSIS
warn "$_ " for verify_requirements($meta, [qw/runtime build test/], 'requires'); DESCRIPTION
This module verifies if requirements described in a CPAN::Meta object are present. FUNCTIONS
check_requirements($reqs, $type) This function checks if all dependencies in $reqs (a CPAN::Meta::Requirements object) are met, taking into account that 'conflicts' dependencies have to be checked in reverse. It returns a hash with the modules as values and any problems as keys, the value for a succesfully found module will be undef. verify_dependencies($meta, $phases, $types, $incdirs) Check all requirements in $meta for phases $phases and types $types. Modules are searched for in @$incdirs, defaulting to @INC. requirements_for($meta, $phases, $types, incdirs) This function returns a unified CPAN::Meta::Requirements object for all $type requirements for $phases. $phases may be either one (scalar) value or an arrayref of valid values as defined by the CPAN::Meta spec. $type must be a a relationship as defined by the same spec. Modules are searched for in @$incdirs, defaulting to @INC. SEE ALSO
o Test::CheckDeps o CPAN::Meta AUTHOR
Leon Timmermans <leont@cpan.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Leon Timmermans. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.16.2 2012-05-24 CPAN::Meta::Check(3)
All times are GMT -4. The time now is 04:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy