Sponsored Content
Top Forums Shell Programming and Scripting no data redirected to a file with top and grep - why? Post 302188722 by era on Thursday 24th of April 2008 05:54:40 AM
Old 04-24-2008
Scroll back and read?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Collecting data from TOP to a file

Is there a way to collect data from top command to a file at regular intervals. I need this on HP-UX. I need to gather resident memory usage. I know that sar will give %cpu usage. There is a pmap command which gives memory usage in solaris. Is there a similar command in HP-UX Thanks (5 Replies)
Discussion started by: sssow
5 Replies

2. UNIX for Dummies Questions & Answers

Saving a redirected file

What command do I use in order to save a file in directory A/B/C to directory A/D/E. (1 Reply)
Discussion started by: JSP
1 Replies

3. Shell Programming and Scripting

tail -f a log file redirected into a new window?

Is this possible? I am attempting to display a new xterm window and tail -f the log file within that new window. I am currently working on a solaris 8 machine if that has any different meaning than the other platforms. As you can see, I am a newbie to this forum and to UNIX. Any help would be... (2 Replies)
Discussion started by: douknownam
2 Replies

4. AIX

search for a file - errors redirected

hi all, i do search for a file in solaris box in the following format find / -name 'file' -print 2>/dev/null i tried the same thing on AIX box; as i am searching from the root the same way i redirected the errors to /dev/null but find is showing strip off errors and when i just continued... (1 Reply)
Discussion started by: matrixmadhan
1 Replies

5. UNIX for Dummies Questions & Answers

Accessing redirected file inside script

hi, Is there a way to access the redirected file inside the script. Here is what the command line looks like: $ shar * > archive_file.arc I know I can't access the name of archive_file.arc with positional parameters like $1, $2.. Is there any way to figure out what file the output of the... (3 Replies)
Discussion started by: milhan
3 Replies

6. UNIX for Dummies Questions & Answers

redirected output not going to file for all cases

I have to confirm that an engine was not able to run. In the output below you see that it indeed got errors, but it didn't send those messages to the output file. When I run the same thing with a different executable it works. So does this mean something in the executable could cause it not to... (7 Replies)
Discussion started by: brdholman
7 Replies

7. Programming

Read redirected file from stdin in C (a.out < file)

Hello everybody, Having a file with the following content: 192.168.0.254->192.168.0.1 192.168.0.2->192.168.0.34 192.168.0.56->192.168.0.77 I need to code a program in C to read it from stdin redirection (i.e. root@box~# ./a.out < file), my question is, how can i do that? I've tried with... (2 Replies)
Discussion started by: semash!
2 Replies

8. Shell Programming and Scripting

Extracting specific lines of data from a file and related lines of data based on a grep value range?

Hi, I have one file, say file 1, that has data like below where 19900107 is the date, 19900107 12 144 129 0.7380047 19900108 12 168 129 0.3149017 19900109 12 192 129 3.2766666E-02 ... (3 Replies)
Discussion started by: Wynner
3 Replies

9. UNIX and Linux Applications

missing delimiters when mysql output is redirected to log file

Hi, Pls check that '|' and '+' present in Step-1 are not copied to log file in Step-3. Pls suggest how to get the exact output from Step-1 (i.e. with out losing '|' and '+') in to a log file ~Thanks Step-1: Execute command > mysql -utest -ptest -htesthost testdb -e "select * from... (3 Replies)
Discussion started by: newbielgn
3 Replies

10. Shell Programming and Scripting

Deleting redirected pwd from file.

Hi echo " username " read username echo "password" stty -echo read password stty echo through read i am taking standard input and redirecign them to a file echo " username=${username}/${password} " > file.lst now from the same shell script i want to delete the password (i.e... (4 Replies)
Discussion started by: rosheks
4 Replies
FORMS(3)						   BSD Library Functions Manual 						  FORMS(3)

NAME
form_driver -- form library LIBRARY
Curses Form Library (libform, -lform) SYNOPSIS
#include <form.h> int form_driver(FORM *form, int request); DESCRIPTION
The form_driver() is the heart of the forms library, it takes commands in the request parameter that is either a request to the driver to perform some action or is a character to be inserted into the current field. The form driver will attempt to insert any printable character passed to it into the current field. This may or may not succeed depending on the state of the current field. If the character passed is not printable then the driver attempts to process it as a driver request. If the character passed is not a valid request then the driver will return an unknown command error. PARAMETERS
The forms driver recognizes the following requests: REQ_NEXT_PAGE Change to the next page in the form. REQ_PREV_PAGE Change to the previous page in the form. REQ_FIRST_PAGE Select the first page in the form. REQ_LAST_PAGE Go to the last page in the form. REQ_NEXT_FIELD Move to the next field in the form field array. REQ_PREV_FIELD Move to the previous field in the form field array. REQ_FIRST_FIELD Go to the first field in the form field array. REQ_LAST_FIELD Go to the last field in the form field array. REQ_SNEXT_FIELD Move to the next sorted field on the form. REQ_SPREV_FIELD Move to the previous sorted field on the form. REQ_SFIRST_FIELD Go to the first field in the sorted list. REQ_SLAST_FIELD Move to the last field in the sorted list. REQ_LEFT_FIELD Go one field to the left on the form page. REQ_RIGHT_FIELD Go one field to the right on the form page. REQ_UP_FIELD Go up one field on the form page. REQ_DOWN_FIELD Go down one field on the form page. REQ_NEXT_CHAR Move one char to the right within the field REQ_PREV_CHAR Move one char to the left within the current field. REQ_NEXT_LINE Go down one line in the current field. REQ_PREV_LINE Go up one line in the current field. REQ_NEXT_WORD Go forward one word in the current field REQ_PREV_WORD Go backward one word in the current field. REQ_BEG_FIELD Move the cursor to the beginning of the current field. REQ_END_FIELD Move the cursor to the end of the current field. REQ_BEG_LINE Move the cursor to the beginning of the line in the current field. REQ_END_LINE Move the cursor to the end of the line. REQ_LEFT_CHAR Move the cursor left one character REQ_RIGHT_CHAR Move the cursor right one character REQ_UP_CHAR Move the cursor up one line. REQ_DOWN_CHAR Move the cursor down one line. REQ_NEW_LINE Insert a new line at the current cursor position. REQ_INS_CHAR Insert a blank character at the current cursor position REQ_INS_LINE Open a blank line at the current cursor position. REQ_DEL_CHAR Delete the character at the current cursor position. REQ_DEL_PREV Delete the character to the left of the current cursor position. REQ_DEL_LINE Delete the current line. REQ_DEL_WORD Delete the word at the current cursor position. REQ_CLR_EOL Clear the field from the current cursor position to the end of the current line. REQ_CLR_EOF Clear the field from the current cursor position to the end of the field. REQ_CLR_FIELD Clear the field. REQ_OVL_MODE Enter overlay mode, characters added to the field will replace the ones already there. REQ_INS_MODE Enter insert mode, characters will be inserted at the current cursor position. Any characters to the right of the cursor will be moved right to accommodate the new characters. REQ_SCR_FLINE Scroll the field forward one line. REQ_SCR_BLINE Scroll the field backward one line. REQ_SCR_FPAGE Scroll the field forward one field page. REQ_SCR_BPAGE Scroll the field backward one field page. REQ_SCR_FHPAGE Scroll the field forward half one field page. REQ_SCR_BHPAGE Scroll the field backward half one field page. REQ_SCR_FCHAR Scroll the field horizontally forward one character REQ_SCR_BCHAR Scroll the field horizontally backward one character REQ_SCR_HFLINE Scroll the field horizontally forward one field line. REQ_SCR_HBLINE Scroll the field horizontally backward one field line. REQ_SCR_HFHALF Scroll the field horizontally forward half a field line. REQ_SCR_HBHALF Scroll the field horizontally backward half a field line. REQ_VALIDATION Request the contents of the current field be validated using any field validation function that has been set for the field. Normally, the field is validated before the current field changes. This request allows the current field to be validated. REQ_PREV_CHOICE Select the previous choice in an enumerated type field. REQ_NEXT_CHOICE Select the next choice in an enumerated type field. RETURN VALUES
Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following error values: E_OK The function was successful. E_REQUEST_DENIED The forms driver request could not be fulfilled E_UNKNOWN_COMMAND The passed character is not a printable character and is not a valid forms driver request. E_BAD_ARGUMENT A bad argument was passed to the forms driver. E_INVALID_FIELD The form passed to the driver has no valid attached fields. E_NOT_POSTED The given form is not currently posted to the screen. E_BAD_STATE The forms driver was called from within an init or term function. E_INVALID_FIELD The character passed to the forms driver fails the character validation for the current field. SEE ALSO
curses(3), forms(3) NOTES
Field sorting is done by location of the field on the form page, the fields are sorted by position starting with the top-most, left-most field and progressing left to right. For the purposes of sorting, the fields top left corner is used as the sort criteria. The header <form.h> automatically includes both <curses.h> and <eti.h>. BSD
January 1, 2001 BSD
All times are GMT -4. The time now is 03:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy