User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 423,996 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,109 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1751 | Replies: 1
Reply
Join Date: Nov 2004
Posts: 1
Reputation: nicolaguy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
nicolaguy nicolaguy is offline Offline
Newbie Poster

Help Program Execution (system())

  #1  
Nov 25th, 2004
What I want to do is call the ls command in Unix and have the output piped into a file? It won't work however, can anyone tell me why or if there is another way other than the one below (that doesn't work) to do it?

system ("ls -author >>tmp.txt");

Thanx

Nicola

AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2004
Location: Colima
Posts: 7
Reputation: vyk2rr is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
vyk2rr's Avatar
vyk2rr vyk2rr is offline Offline
Newbie Poster

Help Re: Program Execution (system())

  #2  
Nov 27th, 2004
Originally Posted by nicolaguy
What I want to do is call the ls command in Unix and have the output piped into a file? It won't work however, can anyone tell me why or if there is another way other than the one below (that doesn't work) to do it?

system ("ls -author >>tmp.txt");

Thanx

Nicola


mmm... .....................
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 7:39 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC