On Sunday 30 June 2013 04:10:42 you wrote:
So you want to run a program and get its output, am I right? In that case,
Rainer Stratmann wrote:
May be he means to execute a command in a shell. ?
Johan Tu Toit wrote:
Yes
___
fpc-pascal maillist -
On Sunday 30 June 2013 00:59:59 you wrote:
I Tried, but only return an integer not a string value.
Thats right.
You have to put the result in a file and then afterwards read the file.
ls uname -r file.txt
The integer is the result code of the execution.
It contains information if the
Rainer Stratmann wrote:
On Sunday 30 June 2013 00:59:59 you wrote:
I Tried, but only return an integer not a string value.
Thats right.
You have to put the result in a file and then afterwards read the file.
ls uname -r file.txt
I'm sorry, but that's misleading on at least two accounts.
In our previous episode, leledumbo said:
If you use trunk version, there are simple wrappers in process unit to do in
in a single line.
Afaik they made it to 2.6.2.
Note that you have to pass the shell yourself (/bin/sh but note that might
not always be bash).
On Sunday 30 June 2013 12:32:30 you wrote:
Rainer Stratmann wrote:
On Sunday 30 June 2013 00:59:59 you wrote:
I Tried, but only return an integer not a string value.
Thats right.
You have to put the result in a file and then afterwards read the file.
ls uname -r file.txt
In our previous episode, Rainer Stratmann said:
If you speed up your engine then you can find out that he wants to know the
actual Linux kernel number.
Then why doesn't he simply use
uses baseunix;
var u: UtsName;
begin
fpuname(u);
writeln(u.release);
end.
On Sunday 30 June 2013 13:25:29 you wrote:
In our previous episode, Rainer Stratmann said:
If you speed up your engine then you can find out that he wants to know
the actual Linux kernel number.
Then why doesn't he simply use
uses baseunix;
var u: UtsName;
begin
fpuname(u);
Rainer Stratmann wrote:
On Sunday 30 June 2013 12:32:30 you wrote:
Rainer Stratmann wrote:
On Sunday 30 June 2013 00:59:59 you wrote:
I Tried, but only return an integer not a string value.
Thats right.
You have to put the result in a file and then afterwards read the file.
ls uname -r
On 6/29/2013 20:53, Johan Tu Toit wrote:
On 6/30/13, waldo kittywkitt...@windstream.net wrote:
FWIW: top posting is like reading a book backwards... please post below
existing quotes...
*^^^*
i fixed your quotes and
On 6/30/2013 05:41, Rainer Stratmann wrote:
On Sunday 30 June 2013 00:59:59 you wrote:
I Tried, but only return an integer not a string value.
Thats right.
You have to put the result in a file and then afterwards read the file.
ls uname -r file.txt
what?! that's not right... i've never
On Sunday 30 June 2013 14:14:56 you wrote:
In which case why is he putting ls in front of it?
I guess he simply does not know by now and tries out something.
-r is a valid option
to both uname and ls, so since we're already looking at a broken command
it's entirely valid to ask which it's
On 6/30/2013 08:14, Mark Morgan Lloyd wrote:
Rainer Stratmann wrote:
On Sunday 30 June 2013 12:32:30 you wrote:
If I had to go on, what's that -r supposed to be doing?
It is not too difficult to find out.
If you speed up your engine then you can find out that he wants to know the
actual
On 6/30/2013 08:44, Rainer Stratmann wrote:
On Sunday 30 June 2013 14:14:56 you wrote:
In which case why is he putting ls in front of it?
I guess he simply does not know by now and tries out something.
don't guess... others cannot learn from assumptions and guesses...
-r is a valid
perhaps someone should slow down their engine and look closer at what is
posted? ;)
hahaha
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
On Sunday 30 June 2013 14:56:33 you wrote:
It is not necessary to delete the file.
so you propose to leave temporary files laying about all over the place
polluting the filesystem?
hahaha
All over the world!
___
fpc-pascal maillist -
On 6/30/2013 09:12, Johan Tu Toit wrote:
sorry it is my fault it was suppose to be: $uname -r
ok... thank you for clarifying that ;)
have you learned what you need to do from the link leledumbo gave earlier in
this thread?
http://wiki.lazarus.freepascal.org/Executing_External_Programs
In our previous episode, waldo kitty said:
http://wiki.lazarus.freepascal.org/Executing_External_Programs
I added a short paragraph about runcommand
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
17 matches
Mail list logo