Oprano Front Page


Go Back   Oprano Adult Industry Forums > The Business Of Porn - Closed For Posting > Legacy Archived Main Board

Notices

Legacy Archived Main Board Business chat and general industry chat. All participation is welcome. Dont post your fucking spam here.





Check Out YnotMail

The Original Oprano Flat Board (Thanks To Sarettah!)---
Oprano Swag Shop
"History Of Porn Timeline
Reply
 
Thread Tools Display Modes
Old 05-22-2005   #1
iknowalttl
Members
 
Join Date: Mar 2005
Location: Florida
Posts: 215
Default

I put in a script and can't access a certain area due to the need to put in the full path to the file... Is there an easy way to find out the full path on a server without waiting to ask the hosting support?
__________________
Got Lifeforce?
iknowalttl is offline   Reply With Quote
Old 05-22-2005   #2
Lisa
Happiness is an anagram of penis pash...
 
Lisa's Avatar
 
Join Date: Oct 2002
Location: Brisbane
Posts: 879
Default

Hmm been a while since I did this but if memory serves me correctly...

If you have SSH/Telnet access to the server, you can login, cd to the directory in question and then type:

pwd

That should tell you the full path of where you are.

I'm sure one of the real tech gurus will shout me down if I'm wrong.
Lisa is offline   Reply With Quote
Old 05-22-2005   #3
helix
Jebus loves me
 
Join Date: Dec 2004
Location: 40 Oz to Freedom
Posts: 857
Default

I think I understand. If it is a linux box you can use the whereis command.
ie:
whereis "filename"
with "filename" being the file you want to see the path for.
__________________
Sigless
helix is offline   Reply With Quote
Old 05-22-2005   #4
iknowalttl
Members
 
Join Date: Mar 2005
Location: Florida
Posts: 215
Default

I don't have shell access

I need the part of the path that is before the cgi-bin directory which is in the root of my account
__________________
Got Lifeforce?
iknowalttl is offline   Reply With Quote
Old 05-22-2005   #5
cd34
I'm the guy that pokes anthills with sticks
 
cd34's Avatar
 
Join Date: Jan 2005
Location: West Palm Beach, FL USA
Posts: 31
Default

#!/usr/bin/perl

print "Content-type: text/html\n\n";

open(PWD,'pwd|');
$pwd = join('',);
$pwd =~ s/\n//gi;
close PWD;

print "Current working directory: $pwd
";
__________________
This is my sig. There are many others like it but this one is mine
cd34 is offline   Reply With Quote
Old 05-22-2005   #6
iknowalttl
Members
 
Join Date: Mar 2005
Location: Florida
Posts: 215
Default

Quote:
Originally posted by cd34@May 22 2005, 08:45 PM
#!/usr/bin/perl

print "Content-type: text/html\n\n";

open(PWD,'pwd|');
$pwd = join('',);
$pwd =~ s/\n//gi;
close PWD;

print "Current working directory: $pwd
";
... lost me... how do I need to be logged in to use those commands?
__________________
Got Lifeforce?
iknowalttl is offline   Reply With Quote
Old 05-22-2005   #7
Hell Puppy
Fat Fucking Nobody
Want to see your own Advertising Here!
 
Hell Puppy's Avatar
 
Join Date: Oct 2002
Posts: 6,523
Default

Most FTP clients will let you run a "PWD".

FTP in, change to the directory in question and execute PWD via FTP.

in WS_FTP for instance it would be File->Operations->PWD
Hell Puppy is offline   Reply With Quote
Old 05-22-2005   #8
Cleo
Omnipotent Ruler Of Perversion
 
Cleo's Avatar
 
Join Date: Oct 2002
Location: SouthEast Florida
Posts: 810
Default

Create a file. Name it "info" without the quotes.

Put cd34's code in it.

Place this file in your cgi-bin.

Chmod it 755

Point your web browser to it, like this
http://terrizamore.com/cgi-bin/info
Cleo is offline   Reply With Quote
Old 05-22-2005   #9
iknowalttl
Members
 
Join Date: Mar 2005
Location: Florida
Posts: 215
Default

Quote:
Originally posted by Hell Puppy@May 22 2005, 09:00 PM
Most FTP clients will let you run a "PWD".

FTP in, change to the directory in question and execute PWD via FTP.

in WS_FTP for instance it would be File->Operations->PWD
I tried that and only get results starting with the root of my account... if I am in my account root I get "/"... if I am in cgi-bin directory I get "/cgi-bin"
__________________
Got Lifeforce?
iknowalttl is offline   Reply With Quote
Old 05-22-2005   #10
iknowalttl
Members
 
Join Date: Mar 2005
Location: Florida
Posts: 215
Default

Quote:
Originally posted by Cleo@May 22 2005, 09:07 PM
Create a file. Name it "info" without the quotes.

Put cd34's code in it.

Place this file in your cgi-bin.

Chmod it 755

Point your web browser to it, like this
http://terrizamore.com/cgi-bin/info
I get a server error... should I use an extention for the file and what extention should I use if it's needed
__________________
Got Lifeforce?
iknowalttl is offline   Reply With Quote
Old 05-22-2005   #11
Cleo
Omnipotent Ruler Of Perversion
 
Cleo's Avatar
 
Join Date: Oct 2002
Location: SouthEast Florida
Posts: 810
Default

Did you chmod 755 it?

You can give it the extension of .cgi if your server needs it.
Cleo is offline   Reply With Quote
Old 05-22-2005   #12
iknowalttl
Members
 
Join Date: Mar 2005
Location: Florida
Posts: 215
Default

Quote:
Originally posted by Cleo@May 22 2005, 09:17 PM
Did you chmod 755 it?

You can give it the extension of .cgi if your server needs it.
yes I chmod to 755...

added the extention and still get server error
__________________
Got Lifeforce?
iknowalttl is offline   Reply With Quote
Old 05-22-2005   #13
Cleo
Omnipotent Ruler Of Perversion
 
Cleo's Avatar
 
Join Date: Oct 2002
Location: SouthEast Florida
Posts: 810
Default

Make sure that you have cd34's code exactly without any html tags, no body and head tags etc.

Maybe this isn't where Perl is located on your server.
#!/usr/bin/perl

Try
#!/usr/local/bin/perl

You can also try .pl for the extension.
Cleo is offline   Reply With Quote
Old 05-22-2005   #14
iknowalttl
Members
 
Join Date: Mar 2005
Location: Florida
Posts: 215
Default

Quote:
Originally posted by Cleo@May 22 2005, 09:37 PM
Make sure that you have cd34's code exactly without any html tags, no body and head tags etc.

Maybe this isn't where Perl is located on your server.
#!/usr/bin/perl

You can also try .pl for the extension.
I did a copy and paste into note pad to create the file so it's the same... and looked it over... that is correct path for perl... tried the extention change and still no luck...
__________________
Got Lifeforce?
iknowalttl is offline   Reply With Quote
Old 05-22-2005   #15
Inabon
One Miiiiiiiiilllllliiiiiiooooonnnnn Dollars
 
Inabon's Avatar
 
Join Date: Jul 2004
Location: Panamá
Posts: 1,585
Default

can you give us a url or ip so we can try to find out what kind of box is it? cause if perl did not work by default you may not have that enabled or you are on a windblows box (which i doubt)
Inabon is offline   Reply With Quote
Old 05-22-2005   #16
iknowalttl
Members
 
Join Date: Mar 2005
Location: Florida
Posts: 215
Default

Quote:
Originally posted by Inabon@May 22 2005, 09:46 PM
can you give us a url or ip so we can try to find out what kind of box is it? cause if perl did not work by default you may not have that enabled or you are on a windblows box (which i doubt)
the URL is http://www.youngpicks.com and the cgi-bin directory is in the root... this is not a winblow box... and perl is PERL 5.005_02
__________________
Got Lifeforce?
iknowalttl is offline   Reply With Quote
Old 05-22-2005   #17
Itchy
Members
 
Join Date: Aug 2004
Posts: 8
Default

http://www.adulttemplete.com/server.zip

this zip has a .cgi file setting to 777 in the cgi bin and then open it in a browser and the info is there

the php file can be used anywhere else
__________________

itchy|@|adultmegacash.com
ICQ# 2-588-560
Itchy is offline   Reply With Quote
Old 05-22-2005   #18
gonzo
Fat Fucking Nobody
Want to see your own Advertising Here!
 
gonzo's Avatar
 
Join Date: Apr 2003
Location: Atlanta,Ga.
Posts: 17,795
Blog Entries: 11
Default

http://www.adultmegacash.com/resources.html
__________________
We are putting the bastards of this world on notice; greed and corruption will always be met with "a voice made of ink and rage."
"Never try and be like anyone else" - Hunter S. Thompson
"The truth is the truth no matter how you try and package a lie" - Shellee Hale
gonzo is offline   Reply With Quote
Old 05-22-2005   #19
Itchy
Members
 
Join Date: Aug 2004
Posts: 8
Default

Done
__________________

itchy|@|adultmegacash.com
ICQ# 2-588-560
Itchy is offline   Reply With Quote
Old 05-22-2005   #20
Newton
It's always business, never personal!
The POWER of radio Oprano Radio
 
Newton's Avatar
 
Join Date: Aug 2004
Location: On a golf course
Posts: 4,916
Default

Quote:
Originally posted by Itchy@May 22 2005, 07:10 PM
Done
Thanks and welcome back to Oprano
Newton is offline   Reply With Quote
Old 05-22-2005   #21
Itchy
Members
 
Join Date: Aug 2004
Posts: 8
Default

Thanks I should have been more on the ball
__________________

itchy|@|adultmegacash.com
ICQ# 2-588-560
Itchy is offline   Reply With Quote
Old 05-22-2005   #22
iknowalttl
Members
 
Join Date: Mar 2005
Location: Florida
Posts: 215
Default

Quote:
Originally posted by Itchy@May 22 2005, 10:53 PM
http://www.adulttemplete.com/server.zip

this zip has a .cgi file setting to 777 in the cgi bin and then open it in a browser and the info is there

the php file can be used anywhere else
bum zip file
__________________
Got Lifeforce?
iknowalttl is offline   Reply With Quote
Old 05-23-2005   #23
Itchy
Members
 
Join Date: Aug 2004
Posts: 8
Default

hummmmmmm just deleted and reloaded then downloaded and checked it should work now if not hit me up on icq and i'll mail them to you
__________________

itchy|@|adultmegacash.com
ICQ# 2-588-560
Itchy is offline   Reply With Quote
Old 05-23-2005   #24
iknowalttl
Members
 
Join Date: Mar 2005
Location: Florida
Posts: 215
Default

Quote:
Originally posted by Itchy@May 23 2005, 12:19 AM
hummmmmmm just deleted and reloaded then downloaded and checked it should work now if not hit me up on icq and i'll mail them to you
awesome.... thanks


nice script...
__________________
Got Lifeforce?
iknowalttl is offline   Reply With Quote
Reply

Bookmarks


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 On
Forum Jump


All times are GMT -4. The time now is 07:45 PM..


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright Evil Empire Inc. 2006-2022