The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Any way to access shared object using shell yhacks Shell Programming and Scripting 2 05-19-2008 07:43 AM
PHP Shell, for secure remote access when SSH isn't available iBot UNIX and Linux RSS News 0 02-19-2008 05:50 AM
Shell access CerialPhreak UNIX for Dummies Questions & Answers 2 08-04-2006 05:07 PM
shell access, please help! genzai UNIX for Dummies Questions & Answers 4 11-18-2005 07:06 PM
shell variable access sabina Shell Programming and Scripting 2 02-24-2005 11:43 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-15-2004
turbohacker turbohacker is offline
Registered User
  
 

Join Date: Jan 2004
Posts: 7
Shell Access

Hi, i would like to put my shell on a server, but it said internal server error, i think the script is totally wrong.
Can somebody please give me a simple script with post data as

Quote:
turbo=hacker&g=ls -al
Thanks

TH
  #2 (permalink)  
Old 03-15-2004
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
install your shell to your home directory or contact the site admin and see if he can install your shell for you.
  #3 (permalink)  
Old 03-15-2004
turbohacker turbohacker is offline
Registered User
  
 

Join Date: Jan 2004
Posts: 7
i havent got one, its not the right one.
  #4 (permalink)  
Old 03-15-2004
RTM's Avatar
RTM RTM is offline Forum Advisor  
Hog Hunter
  
 

Join Date: Apr 2002
Location: On my motorcycle
Posts: 3,039
You need to clarify what you are looking to do here - you stated you wanted your shell put on the server - you were given assistance on that - now you say you don't have a shell.

It sounds like you are trying to either get a script to work (which you need to post the script to this thread) or having trouble with some type of html/cgi script.

Please post more information on what you are attempting to do.
  #5 (permalink)  
Old 03-15-2004
turbohacker turbohacker is offline
Registered User
  
 

Join Date: Jan 2004
Posts: 7
I "had" a script, which i uploaded, the script caused errors, so what i am saying is can somebody write me a script (the simplest script that can be done) so i can access the server via shell and with post data as turbo=hacker&g=ls -al
This will be used at the end of the url script. (site.com/cgi-bin/script.cgi?turbo=hacker&g=ls -al)

Thanks

TH
  #6 (permalink)  
Old 03-15-2004
norsk hedensk norsk hedensk is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2002
Location: new york
Posts: 1,025
your request:
Quote:
can somebody write me a script
is frowned upon here. why dont you try writing it your self, then if you cant get it to work post your code here. this way we can look at what youve got so far and give you assistance from there.
  #7 (permalink)  
Old 03-15-2004
Optimus_P Optimus_P is offline Forum Advisor  
flim flam flamma jamma
  
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
i seriously have to side w/ norsk hedensk on this. we are deffinetly here to help you but its hard to help you if you dont post your code.

being you are trying to get a directory listing via the web in all honesty i dont understand where this would be a needed request, but i do soemthing simmular based on $REMOVE_USER variable passed in from apache.

btw you cant post data w/ spaces in it. use a %20 if your post has spaces.

check the html standard at www.w3.org

but if you are just trying to get a directory listing via cgi.

Code:
#!/usr/bin/perl -w

use CGI qw/:standard/;

print header, start_html($ENV{REMOTE_USER}), h2($ENV{REMOTE_USER}), hr;
@files=glob("*");
for (@files) { print ("<a href=\"$_\">$_</a>", br) };
print end_html;
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:06 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0