This topic is locked

Calling OS commands from ASP page ?

4/7/2006 3:53:05 AM
ASPRunnerPro General questions
M
magnum author

Hi. In my database i have a table wich include's an IP adress of a host in a record. I'm already using the "URL" function where i can call / open a http session in a new page. This works just fine.
I'd also like the possibility to call this IP adress and open an telnet, ftp or a PING session. Is this possible to solve with ASPRunner PRO ?
Thanks in advance...

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=2730&image=1&table=forumtopics' class='bbc_emoticon' alt=':rolleyes:' />

Sergey Kornilov admin 4/7/2006

Hi,
type ftp:// or telnet:// prefix in the URL prefix box in the View format dialog on the Formatting Tab.

M
magnum author 4/7/2006

Hi,

type ftp:// or telnet:// prefix in the URL prefix box in the View format dialog on the Formatting Tab.


Thanks, this is great, but is there a way to list the field "ip_addr" for ex. 3 times and get 3 diff. col's, with different formatting ( one for http, one for telnet and so on.) Tried to manually select the field 3 times, but on the formatting page, it only list once....
regards,

Sergey Kornilov admin 4/7/2006

Modify SQL query to pull this field three times.

select ip_addr,

ip_addr as ip_addr1,

ip_addr as ip_addr2

from ...
M
magnum author 4/7/2006

Hi,
That was it. Works like a clock.... <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=8961&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />
Thanks ! (Once again...)