Sponsored Content
Top Forums Shell Programming and Scripting pseudo code needs help coding Post 302306298 by tuxhats on Sunday 12th of April 2009 08:25:28 AM
Old 04-12-2009
pseudo code needs help coding

Thanks in advance!!! Can I get someone to write this small script or can you direct me to a web link, etc. to get it done?
---------
Initiate this script every 15 - 20 secs or so through cron.

Gather LAN users' $info(username, mac or ipaddr, PID) OBJECT: Tie each username to a mac or ipaddr,
Write $info(3 pieces) for each logged-on user to a $file,
Open this $file for reading,
While not EOF,
Compare each line of $info(ipaddr or mac) looking for an ipaddr or mac match/duplication
if a ipaddr or mac match, check to see if the $username is the same
if the $username DO NOT match
Provide a warning, if possible, to these $usernames(on the same ipaddr/mac),
Kill both process of these $usernames(on the same ipaddr/mac).
else{}
else{}
rm $file
End
-------

Thank you! Smilie
 

10 More Discussions You Might Find Interesting

1. Programming

Pseudo Terminals

I need to spawn a number of foreground process by reading a configuration file. Each process needs some form of I/O. Hence I need to run it on different terminals. How it can be done programatically , i.e. , my module needs to find which terminal is not in use, then open it, execute the process... (2 Replies)
Discussion started by: S.P.Prasad
2 Replies

2. SCO

pseudo driver

explain differences between a device driver & a pseudo driver...???? thanks in advance (1 Reply)
Discussion started by: areef4u
1 Replies

3. Solaris

pseudo: [ID 129642 kern.info] pseudo-device: vol0

Hi I have a system that gave me some messages on bootup that I was not used to seeing: pseudo: pseudo-device: vol0 genunix: vol0 is /pseudo/vol@0 these came with these: Feb 13 17:42:17 system1 eri: SUNW,eri0 : 100 Mbps full duplex link up Feb 13 17:42:21 system1sendmail: My unqualified... (0 Replies)
Discussion started by: mndavies
0 Replies

4. Solaris

what is /devices/pseudo/ ??

Hi all, what does this mean? if then <something> fi here is what i know.. it checks if the specified argument no($devid) in some function call is made into a block device and then proceeds with the execution of the loop. However am not understand what lofi@0:means? also is there... (3 Replies)
Discussion started by: wrapster
3 Replies

5. Shell Programming and Scripting

Pseudo code or description

hi I need a Pseudo code or a description of what a program is saying from this spec and code: Just so i can understand how this solution was achieved, thanks here is the spec: Specifications are as follows:- The books records are stored in one csv file and the layout and the contents... (7 Replies)
Discussion started by: ferrycorsten73
7 Replies

6. Shell Programming and Scripting

how to write pseudo code

hi, I'm doing some project, I selected shell script as programming language, I need to write pseudo code for my script, can anyone tell me how to write that.......?:) (1 Reply)
Discussion started by: hanaveenkumar
1 Replies

7. UNIX for Advanced & Expert Users

Need pseudo connectivity

Hi All, I have putty on my system (Vista). I need some server details to login via internet for my personnel practice. Can any body help me out. In case this not feasible, just let me know any other way to work with UNIX terminal on Windows Vista itself. Please help me since i am desparately... (3 Replies)
Discussion started by: vikas_kesarwani
3 Replies

8. UNIX for Dummies Questions & Answers

Pseudo Terminal

How can i view what my colleague is doing in the terminal pts/1 while i have logged into terminal pts/2 ?? Both have remotely logged in via ssh. (4 Replies)
Discussion started by: proactiveaditya
4 Replies

9. Programming

Change Pseudo Code to C Program (print and fork)

I am very new at programming and this is probably an easy question, but I am desperate. I need to change this low level code into a C program that I can run so I can print out every "A" that appears with the fork() command. You help is greatly appreciated. PRINT A p=fork() if( p == 0) {... (0 Replies)
Discussion started by: tpommm
0 Replies

10. Linux

May you explain step by step where and how I will add pseudo code

Thank all of you. May you explain step by step where and how I will add pseudo code Note : I have Linux 2.6.24-26-server on x86_64 dears kindly help me (3 Replies)
Discussion started by: nonowa
3 Replies
bt-network(1)							    bluez-tools 						     bt-network(1)

NAME
bt-network - a bluetooth network manager SYNOPSIS
bt-network [OPTION...] Help Options: -h, --help Application Options: -a, --adapter=<name|mac> -c, --connect <name|mac> <uuid> -s, --server <gn|panu|nap> <brige> DESCRIPTION
This utility is used to manage network services (client/server). All servers will be automatically unregistered when the application terminates. OPTIONS
-h, --help Show help -a, --adapter <name|mac> Specify adapter to use by his Name or MAC address (if this option does not defined - default adapter used) -c, --connect <name|mac> <uuid> Connect to the network device and return the network interface name, uuid can be either one of "gn", "panu" or "nap" -s, --server <gn|panu|nap> <brige> Register server for the provided UUID, every new connection to this server will be added the bridge interface AUTHOR
Alexander Orlenko <zxteam@gmail.com>. SEE ALSO
bt-adapter(1) bt-agent(1) bt-audio(1) bt-device(1) bt-input(1) bt-monitor(1) bt-serial(1) 2010-11-22 bt-network(1)
All times are GMT -4. The time now is 02:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy