Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support Logic of 3 scripts and 1 header Post 302598205 by lawstudent on Monday 13th of February 2012 07:52:54 PM
Old 02-13-2012
Hi,

What I mean is that it will bring along a far heavier solution, which requires the same additional steps, tie in all other scripts into Joomla.

Oxwall is the social networking solutions we use, as such it offers all the functions for membership, what I need to achieve is wordpress and mediawiki to use Oxwall's membership structure and tie it all together.

A custom solutions would achieve just that, without extra bells and whistles.
 

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Logic for alert scripts.

Hello, In my system, I have implemented various alerts. An example: #!/bin/sh BILL=bill@company.com #GETS THE CURRENT NO OF SESSIONS OPENED IN ORACLE SESSION_NO=`sqlplus -s ${TEST_USER} <<EOF SET HEAD OFF @/home/alerts/vlib/cur_session_no.sql EOF` #MANUALLY SET A THRESHOLD FOR THE... (1 Reply)
Discussion started by: drbiloukos
1 Replies

2. Emergency UNIX and Linux Support

Two scripts, 1 header... help

Hi, I run a site that essentially uses 2 scripts, 1) mediawiki 2) phpfox What I need to do is make both have the same header. I can do this for a bit in HTML, but some elements are difficult and wont work on the mediawiki part. For example the inbox will not show new messages on... (2 Replies)
Discussion started by: lawstudent
2 Replies

3. Shell Programming and Scripting

Help with Logic - Copying the same files by 2 Linux scripts to same directory

Hi All, Good Morning ! Can anyone help me understand the following scenario. Scenario 1 : 2 LINUX Scripts(Process 1 & 2) are trying to copy the same file (lets call it FileA.txt) to the same directory (lets say, /home/abc/zyz) at the same time. If both copy is happening at the same... (9 Replies)
Discussion started by: dsfreddie
9 Replies

4. Shell Programming and Scripting

Perl scripts: requesting for logic explanation

Hi, balajesuri and durden_tyler, I have found your perl script for the thread https://www.unix.com/shell-programming-scripting/176370-perl-script-help-me-extracting-string.html, but find it difficult to understand the syntax. Could you or any forum members kindly shed some light on the logic... (3 Replies)
Discussion started by: royalibrahim
3 Replies

5. Shell Programming and Scripting

Bash script - How to update header of scripts in one pass - multiline search/replace

Hello. A find command return a list of file. For each fileReplace the content starting with the first "§" (of two) ending with last "ɸ" (of two), regardless of the content ( five lines ) by the following content (exactly) : §2019_08_23§ # # ... (8 Replies)
Discussion started by: jcdole
8 Replies
Simple(3pm)						User Contributed Perl Documentation					       Simple(3pm)

NAME
Tie::Simple - Variable ties made easier: much, much, much easier... SYNOPSIS
use Tie::Simple; tie $scalar, 'Tie::Simple', $data, FETCH => sub { ... }, STORE => sub { ... }; tie @array, 'Tie::Simple', $data, FETCH => sub { ... }, STORE => sub { ... }, FETCHSIZE => sub { ... }, STORESIZE => sub { ... }, EXTEND => sub { ... }, EXISTS => sub { ... }, DELETE => sub { ... }, CLEAR => sub { ... }, PUSH => sub { ... }, POP => sub { ... }, SHIFT => sub { ... }, UNSHIFT => sub { ... }, SPLICE => sub { ... }; tie %hash, 'Tie::Simple', $data, FETCH => sub { ... }, STORE => sub { ... }, DELETE => sub { ... }, CLEAR => sub { ... }, EXISTS => sub { ... }, FIRSTKEY => sub { ... }, NEXTKEY => sub { ... }; tie *HANDLE, 'Tie::Simple', $data, WRITE => sub { ... }, PRINT => sub { ... }, PRINTF => sub { ... }, READ => sub { ... }, READLINE => sub { ... }, GETC => sub { ... }, CLOSE => sub { ... }; DESCRIPTION
This module adds the ability to quickly create new types of tie objects without creating a complete class. It does so in such a way as to try and make the programmers life easier when it comes to single-use ties that I find myself wanting to use from time-to-time. The "Tie::Simple" package is actually a front-end to other classes which really do all the work once tied, but this package does the dwimming to automatically figure out what you're trying to do. I've tried to make this as intuitive as possible and dependent on other bits of Perl where I can to minimize the need for documentation and to make this extra, extra spiffy. SIMPLE TYING
To setup your quick tie, simply start with the typical tie statement on the variable you're tying. You should always tie to the "Tie::Simple" package and not directly to the other packages included with this module as those are only present as helpers (even though they are really the tie classes). The type of tie depends upon the type of the first argument given to tie. This should be rather obvious from the "SYNOPSIS" above. Therefore, the arguments are: 1. The variable to be tied. 2. The string 'Tie::Simple'. 3. A scalar value (hereafter called the "local data"). 4. A list of name/CODE pairs. At this point, you'll need to have some understanding of tying before you can continue. I suggest looking through perltie. As you will note in the perltie documentation, every tie package defines functions whose first argument is called "this". The third argument, local data, will take the place of "this" in all the subroutine calls you define in the name/CODE pair list. Each name should be the name of the function that would be defined for the appropriate tie-type if you were to do a full-blown package definition. The subroutine matched to that name will take the exact arguments specified in the perltie documentation, but instead of "this" it will be given the local data scalar value you set (which could even be "undef" if you don't need it). TIES CAN BE SIMPLER STILL
The synopsis above shows the typical subroutines you could define. (I left out the "UNTIE" and "DESTROY" methods, but you may define these if you need them, but be sure to read the perltie documentation on possible caveats.) However, the "SYNOPSIS" is way more complete then you probably need to be in most cases. This is because "Tie::Simple" does it's best to make use of some of the handy Perl built-ins which help with creating tie packages. SCALARS If you are creating a scalar tie, then you can assume all the benefits of being a Tie::Scalar. ARRAYS If you are creating an array tie, then you may assume all the benefits of being a Tie::Array. HASHES If you are creating a hash tie, then you may assume all the benefits of being a Tie::Hash. HANDLES If you are creating a handle tie, then you may assume all the benefits of being a Tie::Handle. TO DO
It sure would be nice if you could declare custom @ISA lists, wouldn't it? I'd like to add such a feature, but coming up with some custom "SUPER::" dispatch code or generating new "anonymous" packages are the only ways I can think to do it. I don't really have time to add such a feature just now. SEE ALSO
perltie, Tie::Scalar, Tie::Array, Tie::Hash, Tie::Handle AUTHOR
Andrew Sterling Hanenkamp, <hanenkamp@users.sourceforge.net> COPYRIGHT AND LICENSE
Copyright 2004 Andrew Sterling Hanenkamp. All Rights Reserved. This library is made available under the same terms as Perl itself. perl v5.12.4 2011-09-20 Simple(3pm)
All times are GMT -4. The time now is 08:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy