LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices



Reply
 
Search this Thread
Old 07-03-2006, 05:33 PM   #1
hades_gii
LQ Newbie
 
Registered: Jul 2006
Posts: 1

Rep: Reputation: 0
How to create a script in FreeBSD


I need to do a script to run in a device with FreeBSD (F5 networks BIGIP).
I need to monitor an html page in some servers that need client certificate.
I've monitored those servers with the next two commands:

openssl s_client -host 172.16.64.210 -port 443 -cert /config/bigconfig/ssl.crt/C00000014.pem

GET /ARPA/loginARPA.jsp

I've done a script introducing only the first command and the var (IP and port) and it works. (openssl s_client -host $1 -port $2 -cert /config/bigconfig/ssl.crt/C00000014.pem)
But I cannot get the second command to run.

Could anyone help me?
I'm new in scripting. :-)
 
Old 07-05-2006, 03:47 AM   #2
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
I think wget can do what you need. Try something like
Code:
wget --certificate=/config/bigconfig/ssl.crt/C00000014.pem https://172.16.64.210/ARPA/loginARPA.jsp
'man wget' for more info
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create patririons and install FreeBSD? s_deepak_123 *BSD 2 03-11-2005 03:46 AM
how do i create a script unimaginative Linux - General 6 01-01-2004 07:53 PM
freebsd new users script evilchild Programming 0 12-30-2003 11:57 PM
How do I create a script? ACURA TL-S Linux - Newbie 1 08-03-2003 10:58 PM
Perl script not running on FreeBSD J_Szucs *BSD 12 07-13-2002 10:05 AM


All times are GMT -5. The time now is 08:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration