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 397,589 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 2,984 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: 1087 | Replies: 3
Reply
Join Date: Jun 2005
Posts: 42
Reputation: namit is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
namit namit is offline Offline
Light Poster

Scripts Linux

  #1  
Dec 3rd, 2005
I have writen a scipts in linux its called user.sh

i wounder how do i run it in a php script

I can if i just run it in command line ./user.sh it works perfect

but can i add it into my code.

thanks
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Posts: 80
Reputation: Daishi is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 2
Daishi Daishi is offline Offline
Junior Poster in Training

Re: Scripts Linux

  #2  
Dec 5th, 2005
Originally Posted by namit
I have writen a scipts in linux its called user.sh

i wounder how do i run it in a php script

I can if i just run it in command line ./user.sh it works perfect

but can i add it into my code.

thanks

You sure can do that. Assuming that user.sh is in the same directory as the php page, just use the backtick operator:

[PHP]<?php
`./user.sh`;
?>[/PHP]

If user.sh isn't in the same directory, try using the full path name to user.sh instead of ./user.sh. Good luck.

-Fredric
Reply With Quote  
Join Date: Jun 2005
Posts: 42
Reputation: namit is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
namit namit is offline Offline
Light Poster

Re: Scripts Linux

  #3  
Dec 10th, 2005
no this does not seam to be working

do not know why
Reply With Quote  
Join Date: Jun 2005
Posts: 42
Reputation: namit is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
namit namit is offline Offline
Light Poster

Re: Scripts Linux

  #4  
Dec 18th, 2005
do i have to set permitions or should it just work?
Reply With Quote  
Reply

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

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

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

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