new question

R

Robert Smith

in a c++ program i want to run the command uuidgen and get its value and
store it in a string varible so i can use it later.
How can i do this?
I am running redhat 9
thanks
 
V

Victor Bazarov

Robert Smith said:
in a c++ program i want to run the command uuidgen and get its value and
store it in a string varible so i can use it later.
How can i do this?
I am running redhat 9

There is no such thing as 'uuidgen' in standard C++, the subject
of this newsgroup. Perhaps you will find more information on this
if you visited comp.os.linux.development.apps (or something like
that) if you expect the newsgroup to know what 'uuidgen' is.

In general, if you have a function that returns a string (like, say,
std::strcat, for example), then you can call it with appropriate
arguments and get the string back and store it for later use. Since
'uuidgen' is not a standard function, nothing can be said about it.

V
 
A

Anil Mamede

You want get the string printed to the shell produced by uuidgen? I'm
not experienced with this situation but i can give you an ideia, try to
pipe out the output of the file to input. Something like
system("uuidgen 1>&2"); and then call cin >> some_string; to get the
input
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

New Learner 0
Suggestions for new Website project 3
My New project 1
New to Shell Scripting 6
Register Question 0
C++ cryptography new library 0
New Programming Language GALAXION 2
BEGINNER: Question 0

Members online

No members online now.

Forum statistics

Threads
474,172
Messages
2,570,934
Members
47,474
Latest member
AntoniaDea

Latest Threads

Top