9 More Discussions You Might Find Interesting
1. Linux
I have Red hat Linux server. There are 14 NFS shares which are coming from NAS. There are so many messages filling /var/log/messages, which seems like some NFS logging is enables somewhere, but I am not able to figure it out. Every few minutes, it will filll my /var (which is part of root) to 100%... (2 Replies)
Discussion started by: solaris_1977
2 Replies
2. Solaris
Hi,
On Solaris 10, how do I enable the auto tab key? For example, on the Linux, I can type few letters and press the tab key. How do I do the same on Solaris?
Thanks. (2 Replies)
Discussion started by: samnyc
2 Replies
3. Shell Programming and Scripting
Hi:
I'm writing a script that will take source / destination pathnames and metadata information from a tab-delimited input file, and then perform various directory creation, file moving and renaming, and tagging of files.
I think I have what I need to do the file manipulation in the script -... (4 Replies)
Discussion started by: GRIMESPACE
4 Replies
4. Shell Programming and Scripting
Hi,
While trying to supress password prompt using ssh. I have added .ssh folder manually and generated public key and added to authorized_keys file in the remote machine. But still it's prompting for passwords with the following message:
Permission denied... (5 Replies)
Discussion started by: 116@434
5 Replies
5. Ubuntu
I used the cron-tab to run the rails's server 24 hours for my application by issuing the following command in terminal
crontab -3(To open the cron-tab terminal) and then
* * * * * OSV/OpenStreetView/script/server
Similarly i tried to run server for the django application by issuing the... (2 Replies)
Discussion started by: amritpalpathak
2 Replies
6. Shell Programming and Scripting
HI all
When i do df -h,it displays the amount of free space.
Tell me a command or a script to fill the total space
to a certain percent (say 99%)
Thanks in advance (8 Replies)
Discussion started by: 2002anand
8 Replies
7. Shell Programming and Scripting
How do I zero fill a string. E.g pad a string to two digits
m=`date "+%m"`
pm=`expr $m - 1`
echo $pm
the above code echoes 1. I want it to echo 01. Any ideas? (3 Replies)
Discussion started by: timgolding
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I've got a file with several columns where some entries are missing.
Example:
a b c d
f g h
j k l
p y r
I need to replace the empty spaces with zero, so the new file would be:
a b c d
f 0 g h
j k 0 l
p y 0 r
The original file is tab delimited.
Many thansk for... (3 Replies)
Discussion started by: zajtat
3 Replies
9. Solaris
I'm an HPUX/Linux guy, who appreciates occasionally hitting the Esc key for Auto-fill...
Does sunOS have anything like this?
This is my 1st post, and I didn't want to waste it :D
thanks,
manuel (3 Replies)
Discussion started by: mr_manny
3 Replies
BBCODE_SET_FLAGS(3) 1 BBCODE_SET_FLAGS(3)
bbcode_set_flags - Set or alter parser options
SYNOPSIS
bool bbcode_set_flags (resource $bbcode_container, int $flags, [int $mode = BBCODE_SET_FLAGS_SET])
DESCRIPTION
Set or alter parser options
PARAMETERS
o $bbcode_container
- BBCode_Container resource, returned by bbcode_create(3).
o $flags
- The flag set that must be applied to the bbcode_container options
o $mode
- One of the BBCODE_SET_FLAGS_* constant to set, unset a specific flag set or to replace the flag set by flags.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
bbcode_set_flags(3) usage example
<?php
/*
* Preparing RuleSet
*/
$arrayBBCode=array(
'b'=> array('type'=>BBCODE_TYPE_NOARG,
'open_tag'=>'<b>', 'close_tag'=>'</b>'),
'u'=> array('type'=>BBCODE_TYPE_NOARG,
'open_tag'=>'<u>', 'close_tag'=>'</u>'),
'i'=> array('type'=>BBCODE_TYPE_NOARG,
'open_tag'=>'<i>', 'close_tag'=>'</i>'),
);
/*
* Paired incorrectly nested BBCode
*/
$text="[i] Parser [b] Auto Correction [/i] at work [/b]
";
$BBHandler=bbcode_create($arrayBBCode);
echo bbcode_parse($BBHandler,$text);
// Enabling reopening of automatically closed elements
bbcode_set_flags($BBHandler,BBCODE_CORRECT_REOPEN_TAGS,
BBCODE_SET_FLAGS_SET);
echo bbcode_parse($BBHandler,$text);
/*
* Unpaired incorrectly nested BBCode
*/
$text="[i] Parser [b] Auto Correction [/i] at work
";
echo bbcode_parse($BBHandler,$text);
// Enabling automatic close of pending tags
bbcode_set_flags($BBHandler,
BBCODE_CORRECT_REOPEN_TAGS|BBCODE_AUTO_CORRECT,
BBCODE_SET_FLAGS_SET);
echo bbcode_parse($BBHandler,$text);
?>
The above example will output:
<i> Parser <b> Auto Correction </b></i> at work
<i> Parser <b> Auto Correction </b></i><b> at work </b>
<i> Parser [b] Auto Correction </i> at work
<i> Parser <b> Auto Correction </b></i><b> at work
</b>
PHP Documentation Group BBCODE_SET_FLAGS(3)