From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <65ce4a4c85188c3349bd0d72d14fdf5b@quintile.net> From: "Steve Simon" Date: Mon, 13 Jun 2005 15:10:26 +0100 To: 9fans@cse.psu.edu Subject: Re: [9fans] acme/sam internal/external command combination? In-Reply-To: <200506131257.j5DCvvw28273@zamenhof.cs.utwente.nl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-mkdcztkgjqvpqzqsakfczzseqc" Topicbox-Message-UUID: 5e8156aa-ead0-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-mkdcztkgjqvpqzqsakfczzseqc Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I lied, I appologise. NetUserEnum2 works fine against win2k3. However another one for your To-do list of errata, I found SessionEnum in the samba code but it is a priviledged call giving "user has insufficent priviledge" if you try to use infolevel 1. However infolevels zero and ten are available to authenticated users, and level 10 has enough info for my needs, the sytuctures are documented in MSDN (google is your friend). -Steve --upas-mkdcztkgjqvpqzqsakfczzseqc Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by felix; Mon Jun 13 13:58:45 BST 2005 Received: from psuvax1.cse.psu.edu (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 6DB4A18373 for ; Mon, 13 Jun 2005 08:58:43 -0400 (EDT) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: from localhost (localhost [127.0.0.1]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 3309418110 for <9fans@cse.psu.edu>; Mon, 13 Jun 2005 08:58:03 -0400 (EDT) Received: from mail.cse.psu.edu ([127.0.0.1]) by localhost (psuvax1 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 26275-01-46 for <9fans@cse.psu.edu>; Mon, 13 Jun 2005 08:58:01 -0400 (EDT) Received: from denhaag.ewi.utwente.nl (denhaag.ewi.utwente.nl [130.89.10.11]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 972AB18131 for <9fans@cse.psu.edu>; Mon, 13 Jun 2005 08:58:01 -0400 (EDT) Received: from zeus.cs.utwente.nl (zeus.ewi.utwente.nl [130.89.10.12]) by denhaag.ewi.utwente.nl (8.13.1/8.13.1) with ESMTP id j5DCvwAq023453; Mon, 13 Jun 2005 14:57:59 +0200 (MEST) Received: from zamenhof.cs.utwente.nl (zamenhof.ewi.utwente.nl [130.89.13.77]) by zeus.cs.utwente.nl (8.12.10/8.12.10) with ESMTP id j5DCvwYe010046; Mon, 13 Jun 2005 14:57:58 +0200 (MEST) Received: from localhost (belinfan@localhost) by zamenhof.cs.utwente.nl (8.11.7p1+Sun/8.10.2) with SMTP id j5DCvvw28273; Mon, 13 Jun 2005 14:57:57 +0200 (MEST) Message-Id: <200506131257.j5DCvvw28273@zamenhof.cs.utwente.nl> X-Authentication-Warning: zamenhof.cs.utwente.nl: belinfan@localhost didn't use HELO protocol To: 9fans@cse.psu.edu From: Axel Belinfante X-Organisation: University of Twente, Department of Computer Science, Formal Methods and Tools Group, PO Box 217, NL-7500 AE Enschede, The Netherlands X-Phone: +31 53 4893774 X-Telefax: +31 53 4893247 X-Face: 3YGZY^_!}k]>-k'9$LK?8GXbi?vs=2v*ut, /8z, z!(QNBk_>~:~"MJ_%i`sLLqGN, DGbkT@ N\jhX/jNLTz2hO_R"*RF(%bRvk+M, iU7SvVJtC*\B6Ud<7~`MGMp7rCI6LVp=%k=HE?-UCV?[p\$R? mI\n2/!#3/wZZsa[m7d;PKWiuH6'~ Date: Mon, 13 Jun 2005 14:57:57 +0200 X-Scanned-By: MIMEDefang 2.44 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0b5 (denhaag.ewi.utwente.nl [130.89.10.11]); Mon, 13 Jun 2005 14:57:59 +0200 (MEST) X-Virus-Scanned: by amavisd-new at cse.psu.edu Cc: sam-fans@hawkwind.utcs.toronto.edu Subject: [9fans] acme/sam internal/external command combination? X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces+steve=quintile.net@cse.psu.edu Errors-To: 9fans-bounces+steve=quintile.net@cse.psu.edu [cross-posting to sam-fans where this is more appropriate, although that has been silent for quite a while] I can count the number of ``a'' characters in ``dot'' (current selection) in acme using Edit x/a/p which prints all ``a'' from ``dot'' in window +Errors and the selecting the aaaa string in +Errors and running >wc on it. Edit x/a/ > wc runs wc for each match of ``a'' which is not what we want (we want to run wc only once, on all matched ``a''). Is there a (more) direct way to do this, or to access the characters printed by the ``p'' command of above ``Edit'', e.g. something to the effect of (Edit x/a/p)| wc (and if so, what would be the sam equivalent?) I could imagine a command sequence that first ``destructs'' dot to contain the aaaaa string and then runs >wc on that, but after that the original contents should be restored, so that is not a very good solution. I think the more general question is: to what extent is it possible (or useful) to mix internal sam/acme commands (in particular those for selecting/matching/looping) with external ones like wc, or is the solution to not try to use acme/sam commands for ``preprocessing'' (selecting), but instead use something external, like sed or awk, on the whole selection? Just trying to learn, Axel. --upas-mkdcztkgjqvpqzqsakfczzseqc--