09-09-2006
-f or --fail used twice will turn off the feature.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am using the shell script file to send mail by "mailx". I do this by cron job, there is no error found. But it is fail, any suggest to me?
How can I resend it automatically? Is there any resend logic by using the mailx? (3 Replies)
Discussion started by: adela
3 Replies
2. Shell Programming and Scripting
Hi all,
I am parsing command line options using getopts.
The problem is that mandatory argument options following ":" is taking next option as argument if it is not followed by any argument.
Below is the script:
while getopts :hd:t:s:l:p:f: opt
do
case "$opt" in
-h|-\?)... (2 Replies)
Discussion started by: gurukottur
2 Replies
3. Shell Programming and Scripting
I've a lot of file with an hyphen on filename, so I use rename for remove him ad substitute with an underscore but it fails
$ rename 's/\-/\_/' *
Unknown option: _
Unknown option: i
Unknown option: r
Unknown option: e
Unknown option: e
Unknown option: _
Unknown option: g
Unknown... (12 Replies)
Discussion started by: cv313x
12 Replies
4. Shell Programming and Scripting
Hi
Am having 2 files.
I have one data file.
before inserting in to the table am taking cout of the data file and store as data 1.
After insert in to the table and am taking the count from the table and store as data2.
If i try to compare those values
If
then
echo "data match"... (5 Replies)
Discussion started by: bobprabhu
5 Replies
5. Shell Programming and Scripting
To find all the files in your home directory that have been edited in some way since the last tar file, use this command:
find . -newer backup.tar.gz
Is anyone familiar with an older solution?
looking to identify files older then 15mins across several directories.
thanks,
manny (2 Replies)
Discussion started by: mr_manny
2 Replies
6. AIX
This is a LPAR that i created earlier.
I want to set an IP address to en0 but it failed.
Command: failed stdout: yes stderr: no
Before command completion, additional instructions may appear below.
en0
devdbm01
inet0 changed
Method error (/usr/lib/methods/chgif):
... (8 Replies)
Discussion started by: wingcross
8 Replies
7. Shell Programming and Scripting
Hello,
When I run this UNIX code without the -t option it gives me the desired results.
The code keeps the record with the greatest datetime based on the key columns.
I sort it first then sort it again with the -u option, that's it.
I need to have a variable to specify an ASCII character... (2 Replies)
Discussion started by: script_op2a
2 Replies
8. Shell Programming and Scripting
Hello,
I am stuck... i dunno why does my test fail... any idea ?
#!/bin/bash
dos2unix info.txt
Distor=Distributeur
LINE=$(cat info.txt | sed -n 1p)
echo $LINE
echo $Distor
echo ""
echo "123-$LINE-123"
echo "123-$Distor-123"
if ; then
LINE2=$(cat info.txt | sed -n 2p)
echo $Distor... (14 Replies)
Discussion started by: patx
14 Replies
9. UNIX for Advanced & Expert Users
Hi - Please help me to understand the Veritas Cluster fail-over capability.
We configured oracle database file system on veritas cluster file system and it is automatically failing-over from node 1 to node 2.
Does Veritas cluster softward have any option to fail-back from node 2 to node 1... (6 Replies)
Discussion started by: Mansoor8810
6 Replies
10. Solaris
Hi,
I installed some packages required by an app built with python.
But when I try python setup.py install, I get the following error:
/opt/csw/lib/gcc/sparc-sun-solaris2.10/5.2.0/../../../../sparc-sun-solaris2.10/bin/as: unrecognized option `-m32'
Could anyone tell me what's wrong... (4 Replies)
Discussion started by: Kimkun
4 Replies
LEARN ABOUT PHP
curl_share_setopt
CURL_SHARE_SETOPT(3) 1 CURL_SHARE_SETOPT(3)
curl_share_setopt - Set an option for a cURL share handle.
SYNOPSIS
bool curl_share_setopt (resource $sh, int $option, string $value)
DESCRIPTION
Sets an option on the given cURL share handle.
PARAMETERS
o $sh
- A cURL share handle returned by curl_share_init(3).
o $option
-
+------------------+--------------------------------------+---+
| Option | | |
| | | |
| | Description | |
| | | |
+------------------+--------------------------------------+---+
| | | |
| CURLSHOPT_SHARE | | |
| | | |
| | Specifies a type of data that | |
| | should be shared. | |
| | | |
| | | |
|CURLSHOPT_UNSHARE | | |
| | | |
| | Specifies a type of data that will | |
| | be no longer shared. | |
| | | |
+------------------+--------------------------------------+---+
o $value
-
+---------------------------+--------------------------------------+---+
| Value | | |
| | | |
| | Description | |
| | | |
+---------------------------+--------------------------------------+---+
| | | |
| CURL_LOCK_DATA_COOKIE | | |
| | | |
| | Shares cookie data. | |
| | | |
| | | |
| CURL_LOCK_DATA_DNS | | |
| | | |
| | Shares DNS cache. Note that when | |
| | you use cURL multi handles, all han- | |
| | dles added to the same multi handle | |
| | will share DNS cache by default. | |
| | | |
| | | |
|CURL_LOCK_DATA_SSL_SESSION | | |
| | | |
| | Shares SSL session IDs, reducing | |
| | the time spent on the SSL handshake | |
| | when reconnecting to the same | |
| | server. Note that SSL session IDs | |
| | are reused within the same handle by | |
| | default. | |
| | | |
+---------------------------+--------------------------------------+---+
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
curl_share_setopt(3) example
This example will create a cURL share handle, add two cURL handles to it, and then run them with cookie data sharing.
<?php
// Create cURL share handle and set it to share cookie data
$sh = curl_share_init();
curl_share_setopt($sh, CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE);
// Initialize the first cURL handle and assign the share handle to it
$ch1 = curl_init("http://example.com/");
curl_setopt($ch1, CURLOPT_SHARE, $sh);
// Execute the first cURL handle
curl_exec($ch1);
// Initialize the second cURL handle and assign the share handle to it
$ch2 = curl_init("http://php.net/");
curl_setopt($ch2, CURLOPT_SHARE, $sh);
// Execute the second cURL handle
// all cookies from $ch1 handle are shared with $ch2 handle
curl_exec($ch2);
// Close the cURL share handle
curl_share_close($sh);
// Close the cURL handles
curl_close($ch1);
curl_close($ch2);
?>
PHP Documentation Group CURL_SHARE_SETOPT(3)