Sponsored Content
Homework and Emergencies Homework & Coursework Questions Simple loop to mail all active users. Post 302985351 by RudiC on Tuesday 8th of November 2016 11:44:33 AM
Old 11-08-2016
So you seem to know how a for loop is structured. You could use "command substitution" to provide a list of items from who for the for construct. While awk comes in handy frequently, here you can do without it. A "command substitution" of fortune could be used for the mail command.
 

4 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Active / Non Active users ?

Hey, I have few Questions : 1. How to Check/Find who all are the users accessing the server using their id ? 2. How to Check who is the active user or non active user (whose id exists but the access privileges has been removed) ? I am presently using AIX5.3 as a server. Please suggest... (3 Replies)
Discussion started by: varungupta
3 Replies

2. Linux

Command for list of active/disabled users

Hi, I want to know the command for finding out the list of active/disabled users in Linux System. Model:x86_64. Rev:2.6.9 Thanks in advance for your help Mike (1 Reply)
Discussion started by: Mike1234
1 Replies

3. UNIX for Dummies Questions & Answers

control permissions for Active Directory users on AIX

Hello, I've configured an user authentication against Active Directory (Windows Server 2008 R2) on AIX V6 with LDAP. It works fine. And here's my problem: How can I control ldap user permissions on the local AIX machine? E.g. an AD user should be able to write all files of local sys... (1 Reply)
Discussion started by: xia777
1 Replies

4. AIX

Authenticate AIX users from MS Active Directory

First, let me start off saying this is not spam. This is me trying to help out other AIX Admins with MS AD servers. If it is not applicable to you, someone else will find it useful. As long as the "KDC" service is running on your AD server, these steps should work. There should be no... (3 Replies)
Discussion started by: kah00na
3 Replies
Test::Inline::Content::Simple(3pm)			User Contributed Perl Documentation			Test::Inline::Content::Simple(3pm)

NAME
Test::Inline::Content::Simple - Simple templating Content Handler SYNOPSIS
In your inline2test.tpl ---------------------- #!/usr/bin/perl -w use strict; use Test::More [% plan %]; $| = 1; [% tests %] 1; DESCRIPTION
It is relatively common to want to customise the contents of the generated test files to set up custom environment things on an all-scripts basis, rather than file by file (using =begin SETUP blocks). "Test::Inline::Content::Simple" lets you use a very simple Template Toolkit style template to define this information. It contains only two tags, "plan" and "tests". The "plan" tag will be inserted as either "tests =" 123> or 'no_plan'. The "tests" tag will be replaced by the actual testing code. METHODS
new $filename Manually create a new "Test::Inline::Content::Simple" object. Takes as parameter a single filename which should contain the template code. Returns a new "Test::Inline::Content::Simple" object, or "undef" on error. template The "template" accessor returns the template content for the object process $Inline, $Script The "process" method is unchanged from "Test::Inline::Content". SUPPORT
See the main SUPPORT section. AUTHOR
Adam Kennedy <adamk@cpan.org>, <http://ali.as/> COPYRIGHT
Copyright 2004 - 2010 Adam Kennedy. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.12.4 2010-11-22 Test::Inline::Content::Simple(3pm)
All times are GMT -4. The time now is 06:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy