10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
hi everyone
what is difference between "if ( -e Arch )" and "if ( -e ./Arch )" in csh shell?
Many Thanks
samad (1 Reply)
Discussion started by: abdossamad2003
1 Replies
2. Shell Programming and Scripting
I have 3 programs, 1 in perl, 2 in csh: call them perl1, csh1 and run.ol
I need perl1 to set csh1 variable NOLOG_qsub = ""
I need perl1 to run, run.ol
run.ol takes the executable and input and outputs to output
run.ol#!/bin/csh -f
# run.ol executable input output
perl1 should... (1 Reply)
Discussion started by: austinj
1 Replies
3. Shell Programming and Scripting
Hi,
i've a string
/u/user/DTE/T_LOGS/20110622_011532_TEST_11_HD_120/HD/TESi T_11_HD_120/hd-12
i need to get string, like
/u/user/DTE/T_LOGS/20110622_011532_TEST_11_HD_120/HD
the words from HD should get deleted, i need only a string till HD, i dont want to use any built in... (4 Replies)
Discussion started by: asak
4 Replies
4. Shell Programming and Scripting
I use csh a lot but I don't really write csh scripts. Now I have a need to implement a security check (written in perl; verify an user input security code) into a csh script. Here is the senario:
#csh
1. call the perl script
2. if the perl script returns 'true', pass on;
if the perl... (1 Reply)
Discussion started by: Julian16
1 Replies
5. Shell Programming and Scripting
Hi ,
I am trying to convert the below code embedded in a csh script to Perl.
Can any expert give me some advice on this ?
sed -n ''"$start_line"',$ p' $tester_dir/nfiles_extracted.txt|cut -c1-4,6-|/bin/perl $test_summary/compare_for_all
_Duts.pl|sort > $tester_dir/nfiles_extracted1.txt (0 Replies)
Discussion started by: Raynon
0 Replies
6. Shell Programming and Scripting
Hmm quite difficult for me to express my problem in one sentence.Introduction {i am a newbee to csh perl, awk and stuff, and by surfing these forums i managed to build quite a big code using all three of them in a script. Have to admitt, it was not a good idea, and its the perfect example of how... (3 Replies)
Discussion started by: Radamez
3 Replies
7. UNIX for Dummies Questions & Answers
I am using perl to perform a search and replace. It works at the command line, but not in the csh shell script
perl -pi -e 's@/Pattern@@g' $path/$file
I used the @ as my delimiter because the pattern contains "/" (3 Replies)
Discussion started by: NobluesFDT
3 Replies
8. Shell Programming and Scripting
Hi All,
I am trying to put the csh variable into a perl.
In the below case, i am trying to put the csh variable "var" into my perl code. I tried to use '"$var"' but i don;t think it works.
Can anybody help me pls?
#!/bin/csh
set var = `echo "xxx"`
perl myperlcode.pl file
... (9 Replies)
Discussion started by: Raynon
9 Replies
9. Shell Programming and Scripting
In csh I can do this
echo `ps -ef | grep root | awk '{print $2}'`
how would I get the same results using perl.
Thanks (6 Replies)
Discussion started by: bdsffl
6 Replies
10. Shell Programming and Scripting
Hi everyone.
I am new to the forums and new to Unix, so please pardon my beginner "status".
In my company, we have a few C shell scripts, which we call BAT files (!). They all start with the usual "#/bin/csh" line to get it to run the .cshrc script which preloads the session with a lot of... (1 Reply)
Discussion started by: SpanishPassion
1 Replies