Sponsored Content
Top Forums UNIX for Dummies Questions & Answers UNIX PATH info required PLEASE HELP (I'm new to unix) Post 21110 by akitachi on Friday 10th of May 2002 02:32:31 PM
Old 05-10-2002
UNIX PATH info required PLEASE HELP (I'm new to unix)

I need to know how to enter a unix path in a cgi script for a guest book:

example:

My URL is http://www.kitachi.info

I have an html file in the main folder on my site, the file is called :

gbook.html

what would the correct unix path for this file be ???

the part of the script I'm working with looks like this, but I know the actual address/ path is wrong..



$GUESTBOOK="/usr/home/kitachi.info/gbook.html";

I've been playing around with it for ages but it's started to drive me insane!


You can see what I'm trying to do if you goto:

http://www.kitachi.info/gbook.html

Then try and submit the form.

Basically , I think that when the form is submitted from the html to the cgi script, the cgi needs to look back through the folder directory and pinpopint the gbook.html file (using the unix path).

I've asked the tech support at my server about this but they aren't much help.

Am I mad, or can someone help me ??


Thank you very much in advance :O)


Regards

Adrian
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Seeing windows PC's from Unix

I have a network of windows 98 PC's that are connected to a unix machine using TCP/IP and Termlite emulator. Is it possible to access the PC's files from the unix machine and could I create files on the PC's from the unix box? (1 Reply)
Discussion started by: rongrout
1 Replies

2. UNIX for Dummies Questions & Answers

What's the difference between Unix, Linux, and Solaris?

If anyone can tell me the difference between the three or where I can find more info I would appreciated it. I see alot of companies looking for people with knowledge in Unix but every time I try to find information about it I see Linux instead. Is there a market trend in these operating... (2 Replies)
Discussion started by: ITmommy
2 Replies

3. UNIX for Dummies Questions & Answers

Newbie to Unix and needs info!

IM SOOOOOO EXITED. I've decided to the Unix operating system on my computer. Here are my computer spex 15 gig HD 550 mHz P3 192 Meg 133 mHz ram FAT 32 Partition Win 98 Couple questions now... What is the best type of Unix/Linux? Why? I have heard that FreeBSD is the best? True, not... (3 Replies)
Discussion started by: KyPeN
3 Replies

4. UNIX for Dummies Questions & Answers

my cable connection does'nt support unix

If my cable company doesn't support unix is there anything I can do. Are there drivers out there or would I be able to buy a third party modem and does it matter what cable co. I use to which cable modem I can use. Thank you for all your help. (1 Reply)
Discussion started by: gparsons70
1 Replies

5. Programming

unix has it's own database

Well I am new to Unix, I small doubt to clarify with our colloquies here. Does Unix any of the versions contains its own database or it stores data on the file system. How to migrate data in Unix to Oracle Data base is there any tool or utility available on Unix that helps to do this... (4 Replies)
Discussion started by: IRFI_P
4 Replies

6. UNIX for Dummies Questions & Answers

I'm a newbie (to UNIX)

Hello everyone! I'm new entirely to UNIX and the main reason for my interest for it is its high demand as a robust OS on the back end for managing volumes effectively and flawlessly. The only exposure I've had to comand line/console OS is DOS some time ago (over 15 yrs to be exact). Used... (5 Replies)
Discussion started by: El Guaca®
5 Replies

7. UNIX for Dummies Questions & Answers

Unix ISO's for FTP, I've searched the other Posts

Where Do I download Unix ISO's for free? I have searched this database for other related posts, but to no avail. All I need is this info, and I don't want Linux; just a Unix site. Please and thank you for your help. (3 Replies)
Discussion started by: killrazor
3 Replies

8. UNIX for Dummies Questions & Answers

Any URL'S for free Unix Download

Hi, Can anyone please suggest me a URL where I can download some unix OS free of cost?? Thanks, Kumar (4 Replies)
Discussion started by: yelamarthi
4 Replies

9. UNIX for Advanced & Expert Users

missing Path(in UNIX) when i launch a job on to unix machine using windows SSh

hi i want run an unix application from a windows program/application.i am using SSH(command line version)to log on to a unix machine from windows. the application has to read a configuration file inorder to run. the configuration file .CFG is in bin in my home directory. but the application... (1 Reply)
Discussion started by: megastar
1 Replies

10. Shell Programming and Scripting

Getting required fields from a test file in required fromat in unix

My data is something like shown below. date1 date2 aaa bbbb ccccc date3 date4 dddd eeeeeee ffffffffff ggggg hh I want the output like this date1date2 aaa eeeeee I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Discussion started by: rdhanek
7 Replies
Auth::Yubikey_WebClient(3pm)				User Contributed Perl Documentation			      Auth::Yubikey_WebClient(3pm)

NAME
Auth::Yubikey_WebClient - Authenticating the Yubikey against the Yubico Web API VERSION
Version 3.00 SYNOPSIS
Authenticate against the Yubico server via the Web API in Perl Sample CGI script :- #!/usr/bin/perl use CGI; $cgi = new CGI; $otp = $cgi->param("otp"); print "Content-type: text/html "; print "<html> "; print "<form method=get>Yubikey : <input type=text name=otp size=40 type=password></form> "; use Auth::Yubikey_WebClient; $id = "<enter your id here>"; $api = "<enter your API key here>"; $nonce = "<enter your nonce here>"; if($otp) { $result = Auth::Yubikey_WebClient::yubikey_webclient($otp,$id,$api,$nonce); # result can be either ERR or OK print "Authentication result : <b>$result</b><br>"; } print "</html> "; FUNCTIONS
new Creates a new Yubikey Webclient connection use Auth::Yubikey_WebClient; my $yubi = Auth::Yubikey_WebClient->new({ id => <enter your id here> , api => '<enter your API key here>' , nonce => '<enter your nonce if you have one>' }); You can overwrite the URL called if you want to call an alternate authentication server as well :- use Auth::Yubikey_WebClient; my $yubi = Auth::Yubikey_WebClient->new({ id => <enter your id here> , api => '<enter your API key here>' , nonce => '<enter your nonce if you have one>', url => 'http://www.otherserver.com/webapi.php' }); debug Displays the debug info $yubi->debug(); Prints out some debug information. Useful to be called after authentication to see what Yubico sent back. You can also call the variables yourself, for example if you'd like to see what the token ID is, call $yubi->{publicid}. The same goes for all the other variables printed in debug. yubikey_webclient otp Check a OTP for validity $result = $yubi->otp($otp); Call the otp procedure with the input from the yubikey. It will return the result. This function will also setup a few internal variables that was returned from Yubico. USAGE
Before you can use this module, you need to register for an API key at Yubico. This is as simple as logging onto <https://upgrade.yubico.com/getapikey/> and entering your Yubikey's OTP and your email address. Once you have the API and ID, you need to provide those details to the module to work. AUTHOR
Phil Massyn, "<phil at massyn.net>" BUGS
Please report any bugs or feature requests to "bug-auth-yubikey_webclient at rt.cpan.org", or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Auth-Yubikey_WebClient <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Auth- Yubikey_WebClient>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORT
You can find documentation for this module with the perldoc command. perldoc Auth::Yubikey_WebClient You can also look for information at: o RT: CPAN's request tracker http://rt.cpan.org/NoAuth/Bugs.html?Dist=Auth-Yubikey_WebClient <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Auth-Yubikey_WebClient> o AnnoCPAN: Annotated CPAN documentation http://annocpan.org/dist/Auth-Yubikey_WebClient <http://annocpan.org/dist/Auth-Yubikey_WebClient> o CPAN Ratings http://cpanratings.perl.org/d/Auth-Yubikey_WebClient <http://cpanratings.perl.org/d/Auth-Yubikey_WebClient> o Search CPAN http://search.cpan.org/dist/Auth-Yubikey_WebClient <http://search.cpan.org/dist/Auth-Yubikey_WebClient> Version history 0.04 - Fixed bug <http://rt.cpan.org/Public/Bug/Display.html?id=51121> 1.00 - Added validation of the request to Yubico (Thanks to Kirill Miazine) 2.00 - Added nounce coding (Thanks to Ludvig af Klinteberg) 2.01 - Response turning into an array due to bug (Thanks to Peter Norin) ACKNOWLEDGEMENTS
COPYRIGHT &; LICENSE Copyright 2010 Phil Massyn, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-01-14 Auth::Yubikey_WebClient(3pm)
All times are GMT -4. The time now is 10:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy