Sponsored Content
Top Forums Shell Programming and Scripting Need help on use of "cmd" command in net::Telnet module in PERL Post 302283258 by sudhakaryadav on Tuesday 3rd of February 2009 01:24:40 AM
Old 02-03-2009
Need help on use of "cmd" command in net::Telnet module in PERL

in "cmd" command i want to copy the ouput of the command excuted to a particular file in a directory.
How to do this..??

Ex : $telnet->cmd(String => 'allip:acl=a1;',Prompt => '/</');
i want to copy o/p of the command "allip:acl=a1;" in a log file in a particular directory.

Plz suggest..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

perl "system" cmd return values..

perl 5.6.1: when i try a "system" command(with if loops for $?), i get this: child exited with value 1 what is meant by this $? values and what does it meant if it returns 1?.. (0 Replies)
Discussion started by: sekar sundaram
0 Replies

2. Shell Programming and Scripting

Need Help on "waitfor" command in net::Telnet Module

Hi, Can anybody help me in writing command "waitfor" for string "C:\WINNT\Profiles\mfcf0508>" while using net::Telnet module. I tried the below format : $telnet->waitfor('/"C\:\WINNT\Profiles\mfcf0508>".*$/i'); Getting error as : pattern match timed-out Plz help me (1 Reply)
Discussion started by: sudhakaryadav
1 Replies

3. Windows & DOS: Issues & Discussions

Need Help on "waitfor" command in net::Telnet Module in PERL

Hi, Can anybody help me in writing command "waitfor" for string "C:\WINNT\Profiles\mfcf0508>" while using net::Telnet module. I tried the below format : $telnet->waitfor('/"C\:\WINNT\Profiles\mfcf0508>".*$/i'); Getting error as : pattern match timed-out Plz help me (3 Replies)
Discussion started by: sudhakaryadav
3 Replies

4. Shell Programming and Scripting

Need help on "Net::SMPP" Module

Hi all, I have installed Net::SMPP module in my system and i want to send SMS using SMPP account. Please help me how to write the script for the same using Net::SMPP module. (0 Replies)
Discussion started by: sudhakaryadav
0 Replies

5. Infrastructure Monitoring

HPUX net-SNMP interpreter "/bin/perl" not found

I am trying to install net-snmp on an HPUX box. I am getting the fallowing error message when I try to run the snmpconf file. I installed the fallowing version of net-snmp net-snmp-5.0.10.2-HP-UX_B.11.11_9000_800.tar and my HPUX box is version HP-UX commnms B.11.11 U 9000/800... (2 Replies)
Discussion started by: krisarmstrong
2 Replies

6. Shell Programming and Scripting

Pressing "Enter/Space bar" using Net::TELNET? in Perl

I'm trying to learn how to get my script to execute the enter button when it telnets into a router and the router displays output but you need to press the space bar or enter button to continue displaying my output of the router. How is this done? (0 Replies)
Discussion started by: xmaverick
0 Replies

7. Shell Programming and Scripting

Unable to Install "Devel-Profile" perl module in windows.

Hi, I want to install 'Devel-Profile' in windows but i am not able to install. Here is the error. PPM> install Devel-Profile Install package 'Devel-Profile?' (y/N): y Installing package 'Devel-Profile'... Error installing package 'Devel-Profile': Could not locate a PPD file for... (3 Replies)
Discussion started by: vanitham
3 Replies

8. Shell Programming and Scripting

Perl script with "chkconfig --list" cmd

Hi everybody; I try to code a script perl to list all services that are active "ON" with a chkconfig -- list the problem is that code list all services which are active or not. #!/usr/bin/perl use strict; use warnings; open(FILE,"-|") || exec "chkconfig --list |grep ON";... (2 Replies)
Discussion started by: bassma
2 Replies

9. Shell Programming and Scripting

Perl open(CMD, "cmd |"); buffering problem..

Hello, There's a third-party application's command that shows the application's status like "tail -f verybusy.log". When use the command, the output comes every 1-sec. but when it goes in a script below the output comes every 8-sec...What is the problem and how can I fix it? open(CMD,... (2 Replies)
Discussion started by: Shawn, Lee
2 Replies

10. Shell Programming and Scripting

Perl: errors during "install Net::SSLeay"

Hi, Here is the errors: Any help will be greatly appreciated! (4 Replies)
Discussion started by: aixlover
4 Replies
acl(2)																	    acl(2)

NAME
acl, facl - get or set a file's Access Control List (ACL) SYNOPSIS
#include <sys/acl.h> int acl(char *pathp, int cmd, int nentries, void aclbufp); int facl(int fildes, int cmd, int nentries, void aclbufp); The acl() and facl() functions get or set the ACL of a file whose name is given by pathp or referenced by the open file descriptor fildes. The nentries argument specifies how many ACL entries fit into buffer aclbufp. The acl() function is used to manipulate ACL on file system objects. The following types are supported for aclbufp: aclent_t Used by the UFS file system. ace_t Currently unused. The following values for cmd are supported: SETACL nentries aclent_t ACL entries, specified in buffer aclbufp, are stored in the file's ACL. All directories in the path name must be searchable. GETACL Buffer aclbufp is filled with the file's aclent_t ACL entries. Read access to the file is not required, but all directo- ries in the path name must be searchable. GETACLCNT The number of entries in the file's aclent_t ACL is returned. Read access to the file is not required, but all directories in the path name must be searchable. ACE_SETACL nentries ace_t ACL entries, specified in buffer aclbufp, are stored in the file's ACL. All directories in the path name must be searchable. ACE_GETACL Buffer aclbufp is filled with the file's ace_t ACL entries. Read access to the file is not required, but all directories in the path name must be searchable. ACE_GETACLCNT The number of entries in the file's ace_t ACL is returned. Read access to the file is not required, but all directories in the path name must be searchable. Upon successful completion, acl() and facl() return 0 if cmd is SETACL. If cmd is GETACL or GETACLCNT, the number of ACL entries is returned. Otherwise, -1 is returned and errno is set to indicate the error. The acl() function will fail if: EACCES The caller does not have access to a component of the pathname. EFAULT The pathp or aclbufp argument points to an illegal address. EINVAL The cmd argument is not GETACL, SETACL, or GETACLCNT; the cmd argument is SETACL and nentries is less than 3; or the cmd argument is SETACL and the ACL specified in aclbufp is not valid. EIO A disk I/O error has occurred while storing or retrieving the ACL. ENOENT A component of the path does not exist. ENOSPC The cmd argument is GETACL and nentries is less than the number of entries in the file's ACL, or the cmd argument is SETACL and there is insufficient space in the file system to store the ACL. ENOSYS The cmd argument is SETACL and the file specified by pathp resides on a file system that does not support ACLs, or the acl() function is not supported by this implementation. ENOTDIR A component of the path specified by pathp is not a directory, or the cmd argument is SETACL and an attempt is made to set a default ACL on a file type other than a directory. ENOTSUP The cmd argument is GETACL, but the ACL is composed of ace_t entries, and the ACL cannot be translated into aclent_t form. The cmd is ACE_SETACL, but the underlying filesystem only supports ACLs composed of aclent_t entries and the ACL could not be translated into aclent_t form. EPERM The effective user ID does not match the owner of the file and the process does not have appropriate privilege. EROFS The cmd argument is SETACL and the file specified by pathp resides on a file system that is mounted read-only. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ getfacl(1), setfacl(1), aclcheck(3SEC), aclsort(3SEC) 9 Sep 2004 acl(2)
All times are GMT -4. The time now is 08:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy