Sponsored Content
Top Forums Shell Programming and Scripting Capture output from interactive script Post 18979 by MizzGail on Thursday 4th of April 2002 04:24:53 PM
Old 04-04-2002
I found another way around that one issue, but this is working for me. ! thanks!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Capture scp output

I have a simple script that uses scp to copy some files from one server to another. I want to capture the files that are copied but simple redirection to a file does not work. So I want to capture this output from the scp command in a log file. -bash-3.00$ scp -pr /export/jumpstart/Files... (7 Replies)
Discussion started by: Tornado
7 Replies

2. Shell Programming and Scripting

script to capture certain output

Hi All, I want to create a script that capture only Date & Time, Current CPU % usage, Disk % usage, Mem % usage and Top process based on this output; Data Collected: 05/17/08 17:19:49 Refresh Interval: 600 seconds GlancePlus Started/Reset: 05/17/08 08:19:45 B3692A GlancePlus... (18 Replies)
Discussion started by: fara_aris
18 Replies

3. Shell Programming and Scripting

Capture Shell Script Output To A File

Hi, I am running a shell script called dbProcess.sh which performs shutdown and startup of various Oracle instances we have.At the time of execution the script produces the following output to the command line window $./dbProcess.sh stop #### Run Details ###### Hostname : server-hop-1... (4 Replies)
Discussion started by: rajan_san
4 Replies

4. Homework & Coursework Questions

Help with Interactive / Non Interactive Shell script

Q. Write a script that behaves both in interactive and non interactive mode. When no arguments are supplied it picks up each C program from the directory and prints first 10 lines. It then prompts for deletion of the file. If user supplies arguments with the script , then it works on those files... (1 Reply)
Discussion started by: rits
1 Replies

5. Homework & Coursework Questions

How to write script that behaves both in interactive and non interactive mode

Q. Write a script that behaves both in interactive and non interactive mode. When no arguments are supplied it picks up each C program from the directory and prints first 10 lines. It then prompts for deletion of the file. If user supplies arguments with the script , then it works on those files... (8 Replies)
Discussion started by: rits
8 Replies

6. Shell Programming and Scripting

Script to capture snoop output

Hi Everyone :), Need your advice as I'm new to UNIX scripting.. I'm trying to write a script to capture snoop output for 5 minutes for every hour for 24 hours. To stop snoop, I need to press Control-C to break it. This is what I got so far, but now I'm stuck! :confused: The script: # cat... (2 Replies)
Discussion started by: faraaris
2 Replies

7. AIX

Non interactive command output using script command ?

Hello, Script command helps to save command output to file. (Redicection doesn't work in this case). Besides interactive shell 'recording', Linux script command has "-c" option which allows to record output of some non-interactive command. The problem is that AIX script command variant... (6 Replies)
Discussion started by: vilius
6 Replies

8. Solaris

How to capture Output of truus command

Hi I want to check if some process is sleeping. I can see that in truss -p <pid> I want to capture output and check that output if proces sis sleeping. Please suggest way to capture output of truss command or other way to check if process is sleeping (1 Reply)
Discussion started by: ankush_mehra
1 Replies

9. Shell Programming and Scripting

Capture Output from an "Interactive" Command?

Hello All, I was wondering how to capture the output of an "interactive" command that is run...? I think "interactive" is the word I'm looking for. For example, commands like "top" and "iftop"... The One I'm trying to work with is "iftop". When you run "iftop" from the command line it begins... (2 Replies)
Discussion started by: mrm5102
2 Replies

10. Shell Programming and Scripting

Capture output from expect script

Hi I am new to Expect scripting. I have to connect to a remote server and capture the output. Here I need output of " send "list registered\r"" to be stored in a file. but after execution, /tmp/capture.txt is of 0 byte #!/usr/bin/expect spawn ssh abc@10.10.10.10 -p 5022 expect... (2 Replies)
Discussion started by: bns928
2 Replies
acl_init(3)						     Library Functions Manual						       acl_init(3)

NAME
acl_init - Allocate and initialize ACL internal working storage LIBRARY
Security Library (libpacl.a) SYNOPSIS
#include <sys/acl.h> acl_t acl_init( const size_t size); PARAMETERS
Specifies the size of the working storage in bytes. DESCRIPTION
NOTE: This function is based on Draft 13 of the POSIX P1003.6 standard. The acl_init() function allocates and initializes working storage for an ACL of at least size bytes. A pointer to the working storage is returned. When the area is first allocated, it contains a ACL that has no ACL entries. RETURN VALUES
Upon successful completion, the acl_init() function returns a pointer to the working storage. Otherwise, a NULL pointer is returned and errno is set to indicate the error. ERRORS
If any of the following conditions occur, the acl_init() function returns a value of NULL and sets errno to the corresponding value: The acl_t to be returned requires more memory than allowed by the hardware or system-imposed memory management constraints. The function is not supported by the implementation. RELATED INFORMATION
acl_add_perm(3), acl_clear_perm(3), acl_create_entry(3), acl_free(3) Security delim off acl_init(3)
All times are GMT -4. The time now is 11:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy