Reputation
19,980
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
2 24 67
Impact
~1.5m people reached

  • 0 posts edited
  • 3 helpful flags
  • 1,869 votes cast
Jan
13
answered SQLPLUS value in variable- not working from crontab
Jan
11
comment Cannot run Perl code as CGI script
@MarkoFrelih - update your question to add HTTP error code that you get when invoking the Perl script from your browser, and also cut-n-paste the entire URL you use to invoke it. Does the /var/log/http/access_log file show that Apache even received the URL? I think you might not even be asking for the script correctly.
Jan
11
comment Cannot run Perl code as CGI script
By what URL do you try to access the reboot.cgi script? You've got a Listen 80 directive, which seems weird, but also seems to work on my Arch laptop. Tell us the entire URL, including the "http://" part.
Jan
11
comment Cannot run Perl code as CGI script
@MarkoFrelih - is the reboot.cgi script marked executable? Is it located in the CGI-BIN directory, which I think is /srv/http/cgi-bin/? Is that directory readable and executable by the "http" user ID?
Jan
11
comment Cannot run Perl code as CGI script
Can you tell use what HTTP error code comes back from Apache? A 404, a 500, or a 302 or even something weirder?
Jan
10
answered nmap -sn lists all active hosts on my network, but nmap -sL does not
Jan
9
answered Cannot run Perl code as CGI script
Jan
8
comment Makefile make install not executing multiple line commands
I don't think the distinction is multiline vs single line, I think it's if the command(s) contain a shell metacharacter (>, &, ;, etc) then make shells out rather than just forking and execing. The rationale here is probably, "it's really hard to parse shell command lines correctly, let's just hand all the hard work off to the shell."
Jan
8
comment Stdin Input Behavior Between “cat” and “less”
@boxofchalk1 - for cat, the special case would be checking if file descriptor 0 represents a TTY device, and exiting if it is. If the cat program doesn't find any file names in argv[], it just reads file descriptor 0 until end-of-file.
Jan
7
answered Stdin Input Behavior Between “cat” and “less”
Jan
7
comment Makefile make install not executing multiple line commands
There might be some weird trick. After all you can re-TTY a process with "reptyr" (github.com/nelhage/reptyr). There's probably some gdb stunt you could do to change LD_LIBRARY_PATH, but I don't think you should do those stunts on a regular basis.
Jan
7
answered Makefile make install not executing multiple line commands
Jan
6
revised Drawing an histogram from a bash command output
Fix typo: count += $2 causes a message about using an array in a scalar context.
Jan
6
comment Drawing an histogram from a bash command output
@muru - seems to work either way. However, I did find a typo in the "else" clause. Thanks.
Jan
6
answered Drawing an histogram from a bash command output
Jan
6
awarded  Nice Answer
Jan
5
answered Was there a '\0' at the end of every script?
Dec
18
awarded  Notable Question
Dec
17
awarded  Nice Answer
Dec
13
comment /proc/self/maps - 3rd mapped piece of file?
@psusi - I'm pretty sure that the ELF loader in the kernel doesn't look at the Sections header at all, just the Pheaders. I'm still confused about this, by the way. I was working on a "userland exec" at the time, and mapping in just the 2 LOAD segments works fine for userland exec