-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Recently I've been using lot of Assembly language in *NIX operating systems. I was wondering about the windows domain.
Calling convention in linux:
mov $SYS_Call_NUM, %eax
mov $param1 , %ebx
mov $param2 , %ecx
int $0x80
Thats it. That is how we should make a system call in linux.
Reference…
>>> More
-
as seen on Super User
- Search for 'Super User'
I have the following PHP script:
<?php
$fortune = `fortune`;
echo $fortune;
?>
but the output is simply blank (no visible errors thrown).
However, if I run php -a, it works:
php > echo `fortune`;
Be careful of reading health books, you might die of a misprint.
-- Mark Twain
php…
>>> More
-
as seen on Super User
- Search for 'Super User'
I have the following PHP script:
<?php
$fortune = `fortune`;
echo $fortune;
?>
but the output is simply blank (no visible errors thrown).
However, if I run php -a, it works:
php > echo `fortune`;
Be careful of reading health books, you might die of a misprint.
-- Mark Twain
php…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have the following PHP script:
<?php
$fortune = `fortune`;
echo $fortune;
?>
but the output is simply blank (no visible errors thrown).
However, if I run php -a, it works:
php > echo `fortune`;
Be careful of reading health books, you might die of a misprint.
-- Mark Twain
php…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
If I call a command using system() in ruby, how do I get it's output?
e.g.
system("ls")
>>> More