10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
HI Folks -
Again, I'm very sorry for the amateur post. I'm reletively new to shell scripting so please bear with me.
I have a script that execute another script which stops a particular set of services for my application. IF the execution is successful, I want to check for any hung ESSSVR... (4 Replies)
Discussion started by: SIMMS7400
4 Replies
2. Shell Programming and Scripting
proc get_view_rel_str { } {
set cc_view :] end]]
puts $cc_view
set a
puts $a
set a end]]
puts $a
set a
puts $a
set a
puts $a
set a
puts $a
}
get_view_rel_str
this is a script in tcl with clearcase view (1 Reply)
Discussion started by: Syed Imran
1 Replies
3. Shell Programming and Scripting
i want to call subroutines in perl like:
sub temp
{ ---- some code ----- }
temp(-switchName, value1, --switchName2, value2)
Like i know getoptions::Long is there for command line switches type arguments. So i want to know for subroutine type arguments. (1 Reply)
Discussion started by: Navrattan Bansa
1 Replies
4. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
This subroutine needs to check if there was a file name given on the command line. If so, return that. Otherwise... (1 Reply)
Discussion started by: yonkers062986
1 Replies
5. Shell Programming and Scripting
How to do I get the return code of a subroutine in a perl module if invoke the subroutine as standalone,
I have an module say TestExit.pm and in that i have a subroutine say myTest() which is returns 12, if i were to call the subroutine from
command line like
CASE:1 ( Without an explict... (2 Replies)
Discussion started by: ennstate
2 Replies
6. Shell Programming and Scripting
I'm maintaining a variety of programs (mostly in Perl) I didn't build, and the perllib is huge on the server. When I run across a user-defined subroutine it takes me at least an hour to look through all the logical places, and sometimes I still can't find the definition.
Is there an easy way to... (2 Replies)
Discussion started by: pdownes
2 Replies
7. HP-UX
Hi,
How can I obtain Hpux?
Thanks (4 Replies)
Discussion started by: arabidi
4 Replies
8. Shell Programming and Scripting
first i have pre-define some variable, then input those into a for statement for some process, finally, i want to get a new value out of it.
A=192.168.16.1
B=192.168.32.1
C=192.168.64.1
for i in A B C
do
echo $i | nawk -F. '{ if ($3 > 16 and < 32) ....something like that, then ( $i=... (7 Replies)
Discussion started by: 3Gmobile
7 Replies
9. UNIX for Dummies Questions & Answers
Hi:
How do I pass a hash table down to a subroutine along with some other variables?
For example, I have say a subroutine play_with_hash:
sub play_with_hash
{
my( $var1, $var2, %my_hash ) = @_;
#do stuff with %my_hash
...........
}
Then I want to call the subroutine... (1 Reply)
Discussion started by: mirzabhai
1 Replies
10. UNIX for Dummies Questions & Answers
How do I define and call a subroutine in a ksh script (or any shell)? I'm writing a script that uses a lot of the same code over and over and I don't want to waste time/space.
Thanks,
Chuck (2 Replies)
Discussion started by: 98_1LE
2 Replies