Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 12th, 2005, 4:42 AM   #1
sreegopi
Newbie
 
Join Date: Oct 2005
Posts: 1
Rep Power: 0 sreegopi is on a distinguished road
executing command line thru pline

i want output as such shown below by exeuting commandline mailstats thru PHP
which function can go for exec,shell command,popen

[root@client03 root]# mailstats
Statistics from Mon Sep 5 17:55:37 2005
M msgsfr bytes_from msgsto bytes_to msgsrej msgsdis Mailer
4 16 218K 4215 11843K 0 0 esmtp
9 112819 222680K 97741 209539K 0 0 local
=============================================================
T 112835 222898K 101956 221382K 0 0
C 94172 15319 0

plz kindly help us ASAP

Gopi
sreegopi is offline   Reply With Quote
Old Oct 12th, 2005, 4:56 AM   #2
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 3 ivan is on a distinguished road
Do some research, then post your code and we will try to help you the best we can.
ivan is offline   Reply With Quote
Old Oct 12th, 2005, 7:55 AM   #3
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
What have you tried?
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Oct 12th, 2005, 8:54 AM   #4
sykkn
Hobbyist Programmer
 
Join Date: Apr 2004
Location: Texas
Posts: 106
Rep Power: 5 sykkn is on a distinguished road
http://us3.php.net/popen
http://us2.php.net/manual/en/function.exec.php
http://us3.php.net/manual/en/function.shell-exec.php

http://www.php.net should be at the top of your bookmark list.
__________________
[ [ SykkN alloc ] initWithThePowerTo: destroyYouAll ];
/* Don't make me use it! */
sykkn is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:58 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC