10 More Discussions You Might Find Interesting
1. Programming
hi,
I defined my own String class and overloaded the output operator with
friend ostream& operator<<(ostream& os, const myString& str);
//overloads the << operator so it can be used to output values of type myString
which works fine. Until I try to execute the following statement:
// +... (6 Replies)
Discussion started by: milhan
6 Replies
2. Shell Programming and Scripting
Hi,
I know with getopts you can pass arguments from the command line
./script -ab -c apple
But it doesn't support 2 or more arguments for ONE option. Is there any other way to do this?
Thanks (2 Replies)
Discussion started by: testa500
2 Replies
3. Shell Programming and Scripting
I am passing 3 runtime arguments to a shell script
$path crtl1 crtl2
the crtl files contains data(filename|date|count)
filename.txt|02/05/2010|10
The path contains the original data file,the code should fetch (filename|date|count) from original data file and it should match... (7 Replies)
Discussion started by: Prashanth B
7 Replies
4. Shell Programming and Scripting
I am developing a script where 3 other scripts are included.
This is a graph related script.
COMPLETE IDEA:
-There are 3 different graph scripts. I would like to create a master graph with all 3 in one.
-User chooses the type of graph
-User is asked to enter the required auguments (... (7 Replies)
Discussion started by: newkid.7955
7 Replies
5. Shell Programming and Scripting
I have a switch statement, and I want to have two options performing the same thing. For example, if $opt matches "-fb" or "--fbase", I want to perform the same operation. How can I include various matches in "case" ?
switch ($opt)
case "-T":
set Atpath = $par
set opt_tpath =... (8 Replies)
Discussion started by: kristinu
8 Replies
6. Programming
Hello everyone!
Suppose that I have something like this
A a;
a.mem=new int;
A b = a;
where
class A {
public:
int * mem;
A() : mem(NULL) {
}
~A() {
if (mem!=NULL)
delete mem; (1 Reply)
Discussion started by: bashuser2
1 Replies
7. Shell Programming and Scripting
Hi, my requirement is that my builds should not be built if the current hour is greater 3 but not (between 12 and 15), I'm trying to write a shell script for this but there is always an error
hour=$1
echo "hour:$hour"
if && ! && ]; then
echo "exit"
else
echo "enter"
fi
... (9 Replies)
Discussion started by: kgsrinivas
9 Replies
8. Shell Programming and Scripting
hi all
i am creating a script to ping hosts and then do a nslookup.
So what needs to happen is that i type the script name with an argument eg:
zong (script name) 172.x.x.x (IP)
at the moment i have got it to take on argument, but idealy i would like it to take more than 1 argument. can you... (1 Reply)
Discussion started by: brian112
1 Replies
9. AIX
Hi,
I have a piece of C++ code that can be compiled using g++, but reports an error when compiled with xlC:
xlC -DHAVE_CONFIG_H -I../SRC -I../include -DNoChange -DSPRNG_MPI -q64 -DLONG64=long -I/usr/lpp/ppe.poe/include -DLONG64=long -c -o libsprng_a-bignum.o bignum.cpp
"bignum.cpp",... (1 Reply)
Discussion started by: luop0812
1 Replies
10. Shell Programming and Scripting
Hi folks
I have a snippet of code Which is like this
If ( ( A || B || C ) && D ) then
Do some thing....
elif exit
fi
How to rephrase this and use it so I dont get any Errors ...
Looking out for helpful replies ..
Thanks & Regards
Srikanth GR (1 Reply)
Discussion started by: srikanthgr1
1 Replies