Jump to content

bash scripts


dreamwest

Recommended Posts

Heres a list of directories i can access on my server through ftp

 

public_html

tmp

public_ftp

www

bash_history

bash_logout

bash_profile

bashrc

contactemail

ftp_quota

lang

last_login

pearrc

zshrc

php

mail

bin

ssh

access_logs

 

and a few other misc stuff

 

Can i do something with this

Link to comment
https://forums.phpfreaks.com/topic/158893-bash-scripts/#findComment-838017
Share on other sites

[quote author=dreamwest link=topic=253079.msg1188769#msg1188769 date=1242819173

Do i run it in my browser or do i need root access of the server and run it through something like putty

The question you should ask your self is "why do I want to run this bash script". If you want to run it by calling a url in your browser you could use php using the exe function

Link to comment
https://forums.phpfreaks.com/topic/158893-bash-scripts/#findComment-838777
Share on other sites

[quote author=dreamwest link=topic=253079.msg1188769#msg1188769 date=1242819173

Do i run it in my browser or do i need root access of the server and run it through something like putty

The question you should ask your self is "why do I want to run this bash script". If you want to run it by calling a url in your browser you could use php using the exe function

 

Im on a mission to learn every available programming language i can - Its my hobby

 

I didnt know you can run shell commands with a function

Link to comment
https://forums.phpfreaks.com/topic/158893-bash-scripts/#findComment-838791
Share on other sites

The question you should ask your self is "why do I want to run this bash script". If you want to run it by calling a url in your browser you could use php using the exe function

 

Im on a mission to learn every available programming language i can - Its my hobby

 

I didnt know you can run shell commands with a function

Then you're better of installing linux, freeBSD or anything else that runs bash on one of your computers and use a terminal. Using a webserver to learn bash isn't really gonna cut it

Link to comment
https://forums.phpfreaks.com/topic/158893-bash-scripts/#findComment-838797
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.