10-03-2005
Looks like a homework assignment.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi. What command can be used to determine the system
configuration. For example I want to find out how much CPU,
how much memory, what CPU and 233mhz or 400mhz, etc.
Please help.... (4 Replies)
Discussion started by: subhransu
4 Replies
2. UNIX for Dummies Questions & Answers
hi, to do a su - user, we need to know what are the users...
so in unix
1) which file to see the list of users, passwords? (2 Replies)
Discussion started by: yls177
2 Replies
3. AIX
Hello
I have a question
I have this users on my aix 5.3 box. This are a default users.
lp:*:11:11::/var/spool/lp:/bin/false
invscout:*:6:12::/var/adm/invscout:/usr/bin/ksh
snapp:*:200:13:snapp login user:/usr/sbin/snapp:/usr/sbin/snappd
ipsec:*:201:1::/etc/ipsec:/usr/bin/ksh... (2 Replies)
Discussion started by: lo-lp-kl
2 Replies
4. UNIX for Dummies Questions & Answers
Hello,
i just wanted to know how do i find out the list of users whose terminal is writable?i mean i used
who -T
but this gives a list of all users whose terminal is writable or blocked and not writable. So how do i do this?I am new to Unix. (2 Replies)
Discussion started by: salman4u
2 Replies
5. Emergency UNIX and Linux Support
Is there a way to generate a list of users with name, user ID, and Security Group? It is urgent for audit purposes.
Please help. (5 Replies)
Discussion started by: ggayathri
5 Replies
6. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I want to create a file called Allusers that contains the list of
currently logged on users and the total number... (2 Replies)
Discussion started by: ahm2008
2 Replies
7. UNIX for Dummies Questions & Answers
Hello i need fast help... script which will list only human users from /etc/passwd and find out if they have something in home. Thanks (11 Replies)
Discussion started by: mentoscz
11 Replies
8. UNIX for Dummies Questions & Answers
Hi,
On my system, I have about 75 users. Some uers have two or three sessions on the same systems. when I do w, it shows all the sessions. Is there any way to find only the users and not worry about how many sessions. For example: you can see sshe has four connection. I only want to know... (5 Replies)
Discussion started by: samnyc
5 Replies
9. UNIX for Advanced & Expert Users
Hello all,
I want to find the files for certain users. I cant make the or condition work in this instance. I've tried the code below but it didnt worked. Any input on how to get the list for all files for this users.
find . -type f -user abc134 -o -user xyz345 -o bce483 -exec ls... (6 Replies)
Discussion started by: sethmj
6 Replies
10. Shell Programming and Scripting
Is there any command that can used in Linux that export usernames and their manager's name from AD using bash shell script?
I know this can be done using powershell but I need to use Linux for this procedure. (2 Replies)
Discussion started by: dellanicholson
2 Replies
LEARN ABOUT DEBIAN
macrocmd
MacroCmd(3U) InterViews Reference Manual MacroCmd(3U)
NAME
MacroCmd - a command that composes other commands
SYNOPSIS
#include <Unidraw/Commands/macro.h>
DESCRIPTION
MacroCmd composes other commands in a linear fashion. Executing a MacroCmd is equivalent to executing its children in preorder.
PUBLIC OPERATIONS
MacroCmd(ControlInfo*)
MacroCmd(
Editor* = nil,
Command* first = nil, Command* second = nil,
Command* third = nil, Command* fourth = nil
)
Construct a MacroCmd instance, optionally supplying up to four of its child commands.
virtual void Execute()
virtual void Unexecute()
virtual boolean Reversible()
Execute simply executes each child, from first to last. Unexecute calls Unexecute on each child, from last to first. The MacroCmd
is reversible if any of its children are.
virtual void SetEditor(Editor*)
SetEditor calls SetEditor on each child with the given argument.
Command* GetCommand(Iterator)
void SetCommand(Command*, Iterator&)
GetCommand returns the child Command to which an iterator points. SetCommand initializes the iterator to point to a particular
child Command; it initializes the iterator to point to a nil instance if the given Command is not a child.
void Append(
Command*, Command* = nil, Command* = nil, Command* = nil
)
void Prepend(
Command*, Command* = nil, Command* = nil, Command* = nil
)
void InsertAfter(Iterator, Command*)
void InsertBefore(Iterator, Command*)
void Remove(Command*)
void Remove(Iterator&)
Operations that modify the MacroCmd's list of children. Append and Prepend add up to four Commands to the end and the beginning of
the list, respectively. InsertAfter and InsertBefore insert a Command after and before the Command pointed to by the iterator,
respectively. The Remove operations remove a child from the list without deleting it. You can remove a child by referring to it
explicitly or by specifying an iterator. If an iterator is supplied, the Remove operation should advance it to point to the follow-
ing child as a side effect.
PROTECTED OPERATIONS
Command* Cmd(UList*)
UList* Elem(Iterator)
Convenience functions for extracting a Command from a UList element a UList from an iterator, respectively.
SEE ALSO
Command(3U), Iterator(3U), UList(3U)
Unidraw 24 January 1991 MacroCmd(3U)