Sponsored Content
Full Discussion: LWP module ?
Top Forums UNIX for Dummies Questions & Answers LWP module ? Post 3848 by Beto on Thursday 12th of July 2001 08:17:29 AM
Old 07-12-2001
donīt work :(

well check this :


---------------------------------------

13:24:47:portalx@pontonet3:~/cgi-bin>ls
total 16
drwxr-xr-x 2 portalx portalx 512 Jul 12 13:24 LWP/
drwxr-xr-x 2 portalx portalx 512 Jun 29 16:29 admin/
drwxr-xr-x 2 portalx portalx 512 Jul 7 20:54 ads/
drwxr-xr-x 2 portalx portalx 512 Jul 7 20:39 ads2/
drwxr-xr-x 3 portalx portalx 512 Jul 9 14:34 exec/
drwxr-xr-x 2 portalx portalx 512 Jun 29 16:29 formmail/
drwxr-xr-x 5 portalx portalx 1536 Jul 1 05:42 forum/
drwxr-xr-x 2 portalx portalx 512 Jun 29 16:29 guestbook/
drwxr-xr-x 3 portalx portalx 512 Jul 3 20:12 links/
drwxr-xr-x 3 portalx portalx 512 Jul 7 20:40 online/
drwxrwxrwx 3 portalx portalx 512 Jul 4 17:15 out/
drwxr-xr-x 2 portalx portalx 512 Jun 29 16:29 rand_text/
drwxr-xr-x 2 portalx portalx 512 Jun 29 16:29 search/
-rwxrwxrwx 1 portalx portalx 386 Jul 12 13:18 teste.cgi*
drwxrwxrwx 4 portalx portalx 512 Jul 7 14:19 topregisto/
13:24:56:portalx@pontonet3:~/cgi-bin>execute teste.cgi
bash: execute: command not found
13:25:14:portalx@pontonet3:~/cgi-bin>exec teste.cgi
bash: exec: teste.cgi: not found
13:25:21:portalx@pontonet3:~/cgi-bin>

----------------------------

the script you give is teste.cgi but i canīt get it to work :( ...
my host run on a freebsd could that be the problem ?
 

10 More Discussions You Might Find Interesting

1. Solaris

decipher pstack with problem lwp

My company has a product that is running on JBoss on Solaris against Oracle 8.1.7. We are having an issue with the server process and high CPU utilization. During this time, and only during this time, we are experiencing database locks that will not let go. A 'ps -L' on the server process... (5 Replies)
Discussion started by: hosierdm
5 Replies

2. Shell Programming and Scripting

Help needed in Perl LWP module

Hi, I've a issue in writing a perl script that will automatically monitor the site availability. There are two different cookies are set in two consecutive flows to a URL and this second cookie has to be passed to the third step which actually gives permission to access based upon the cookie. ... (1 Reply)
Discussion started by: dayanandra
1 Replies

3. Linux

How to convert Linux Kernel built-in module into a loadable module

Hi all, I am working on USB data monitoring on Fedora Core 9. Kernel 2.6.25 has a built-in module (the one that isn't loadable, but compiles and links statically with the kernel during compilation) to snoop USB data. It is in <kernel_source_code>/drivers/usb/mon/. I need to know if I can... (0 Replies)
Discussion started by: anitemp
0 Replies

4. Shell Programming and Scripting

Login using perl LWP module

Hi, Could some one tell me how to login to any web site and get that page using perl LWP. I heard that we can login to the site using LWP. I dont want to use WWW:Mechanize as I dont have that module installed on the server. Appreciate your early response. Thanks... (8 Replies)
Discussion started by: Anjan1
8 Replies

5. Shell Programming and Scripting

authentication using LWP

Can some one tell me how to post the username and password using perl LWP. An example is sufficient.. (0 Replies)
Discussion started by: Anjan1
0 Replies

6. UNIX for Dummies Questions & Answers

LWP::Simple Problem !!

Hi All, I'm having a problem when I run the following code for example perl -e 'use LWP::Simple; getprint "http://google.com"' Can't locate LWP/Simple.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6... (7 Replies)
Discussion started by: pawannoel
7 Replies

7. Shell Programming and Scripting

Perl LWP user authentication

Hello all.. i am new to perl scripting.. i wanted to parse a text file, encode the parsed text and attach in url.. please point me to right resources if you know any..This is my major problem. Now i try to get a url running and save it in a text file using LWP module in perl, I used following... (0 Replies)
Discussion started by: empyrean
0 Replies

8. Shell Programming and Scripting

lwp-request examples

Hi; Can i have ne sample examples of of using " lwp-request" in shell script. Is it necessary to have perl installed already in linux box for using this; Thnks; (2 Replies)
Discussion started by: ajaypadvi
2 Replies

9. Shell Programming and Scripting

parsing a webpage - perl lwp

I am requesting for the text parsing section below. Any helps are highly appreciated. <tr valign="top"><td nowrap>Source name</td> <td style="text-align: justify">Sample Name<br></td> I want Sample Name from above. In the same file, I have to search for another pattern like this <td><a... (1 Reply)
Discussion started by: jacobs.smith
1 Replies

10. Web Development

Using LWP without hard coding password

Hi, I would like to read content from a https site. I have decided to use LWP module in perl. but it throwed 401 Authorization required error. i dont want to hard code the password in my perl code. Is there any way to achieve the authentication without hardcoding the password. Thanks,... (1 Reply)
Discussion started by: pandeesh
1 Replies
FTP_RAWLIST(3)								 1							    FTP_RAWLIST(3)

ftp_rawlist - Returns a detailed list of files in the given directory

SYNOPSIS
mixed ftp_rawlist (resource $ftp_stream, string $directory, [bool $recursive = false]) DESCRIPTION
ftp_rawlist(3) executes the FTP LIST command, and returns the result as an array. PARAMETERS
o $ftp_stream - The link identifier of the FTP connection. o $directory - The directory path. May include arguments for the LIST command. o $recursive - If set to TRUE, the issued command will be LIST -R. RETURN VALUES
Returns an array where each element corresponds to one line of text. Returns FALSE when passed $directory is invalid. The output is not parsed in any way. The system type identifier returned by ftp_systype(3) can be used to determine how the results should be interpreted. EXAMPLES
Example #1 ftp_rawlist(3) example <?php // set up basic connection $conn_id = ftp_connect($ftp_server); // login with username and password $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // get the file list for / $buff = ftp_rawlist($conn_id, '/'); // close the connection ftp_close($conn_id); // output the buffer var_dump($buff); ?> The above example will output something similar to: array(3) { [0]=> string(65) "drwxr-x--- 3 vincent vincent 4096 Jul 12 12:16 public_ftp" [1]=> string(66) "drwxr-x--- 15 vincent vincent 4096 Nov 3 21:31 public_html" [2]=> string(73) "lrwxrwxrwx 1 vincent vincent 11 Jul 12 12:16 www -> public_html" } SEE ALSO
ftp_nlist(3). PHP Documentation Group FTP_RAWLIST(3)
All times are GMT -4. The time now is 02:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy