10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a fortran file with code declarations such as
Subroutine str_tnum_tu &
( &
s, dl, tu, pos &
)
!
Class (*), Intent (InOut) :: tu(:)
Character (Len=*), Intent (In) :: s, dl
Character (Len=*), Intent (In), Optional :: pos
...
or
... (11 Replies)
Discussion started by: kristinu
11 Replies
2. Programming
Hi everyone,
I have given up finally trying to find a way to do this.
I have a subroutine called LoginFirst where I am starting a new SSH session.
I have bunch of subroutines, each one of them uses a (or I have to create
a new SSH constructor everytime) ssh connection to get some value so ... (2 Replies)
Discussion started by: dummy_code
2 Replies
3. UNIX for Dummies Questions & Answers
Okay I have a 1TB drive that is almost completely full with vids. I am in the process of converting them to mp4. I have two scripts right now. One is a shell script to convert them with Handbrake. The other is a script to get a sort of progress report. To make things easier to understand, I will... (0 Replies)
Discussion started by: Dalton63841
0 Replies
4. HP-UX
Our network administrators implemented some sort of check to kill idle sessions and now burden is on us to run some sort of keep alive. Client based keep alive doesn't do a very good job. I have same issue with ssh. Does solution 2 provided above apply for ssh sessions also? (1 Reply)
Discussion started by: yoda9691
1 Replies
5. Shell Programming and Scripting
So, I'm running a script with a couple of subroutines, one of which takes arguments using getopts. The first time i call the subroutine everything works as expected, the second time I call it none of the arguments change. Here's a small section of code that shows this behavior.
#!/bin/sh... (3 Replies)
Discussion started by: dhibbit
3 Replies
6. Shell Programming and Scripting
Hello,
I am having problem calling a subroutine with arguments, can any help? is the approach I am using correct?
main()
{
# This is just a subset of the code
#$b & $lnum is already define in this section of the code
checkboard $b $lnum
}
checkboards()
{
ln=$lnum... (2 Replies)
Discussion started by: jermaine4ever
2 Replies
7. Shell Programming and Scripting
Hi,
I can't get this script ot work and I wa wondering if anyone could help?
I need to open a file and use a subroutine to search each line for a regular expression. If it matches then I need to return a match from the subroutine and print the result?
Any help would be greatly... (11 Replies)
Discussion started by: jmd2004
11 Replies
8. AIX
Okay, so in AIX, there are various subroutines that is built in to the OS. The subroutine is I want to use is passwdpolicy(). So I want to construct a C program that will be able to pass credentials into the program and thusly into the subroutine.
I'm not asking for homework, or for someone to... (0 Replies)
Discussion started by: syndex
0 Replies
9. UNIX for Dummies Questions & Answers
I have something like
cp -p <dir>filename1.dat <dir2>filename1.dat
there are many other operations in it
I mean that filename1.dat will keep on changing
I need to write a subroutine so that i can pass filename1 or 2 or 3 .dat as parameter
Thanking you in advance
Any help wuld be appreciated (2 Replies)
Discussion started by: ssuresh1999
2 Replies
10. Shell Programming and Scripting
Hi,
we can call the subroutines using two ways ....
1) calling subroutine name preceeded by & symbol.
2)Another one is without &symbol....
what is the diff b/w these two....
############################
#usr/bin/perl
fun;
sub fun
{
print "hi this is from perl\n";
}... (1 Reply)
Discussion started by: sarwan
1 Replies