Sponsored Content
Full Discussion: Capture scp output
Top Forums Shell Programming and Scripting Capture scp output Post 302149084 by porter on Tuesday 4th of December 2007 09:03:52 PM
Old 12-04-2007
That's a progress meter and would look awful if captured to a file as it contains cursor control codes.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Capture output from interactive script

I have written a menu driven script to walk users through bringing up and down an application process. Sometimes the user tells me the script does not work taking the application down, but he can't recall seeing an error message. Is there a way to capture std out and stderr out from an... (6 Replies)
Discussion started by: MizzGail
6 Replies

2. UNIX for Advanced & Expert Users

Capture output to file and printer

Hi All : I wanted a unix command by which I could be able to print the output to a file and at the same time to a printer. Any help will be greatly appreciated. Regards, Ramamurthy Dasari (1 Reply)
Discussion started by: rdasari
1 Replies

3. 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

4. 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

5. Programming

capture the output of printf into another variable

Hi , I wonder if in java I can pipe the below output of the printf into a variable: System.out.printf(" This is a test %s\n", myVariable); I want to keep the output of the printf command to create my history array. Thanks. (2 Replies)
Discussion started by: arizah
2 Replies

6. Shell Programming and Scripting

How to capture output to log file

Hi I have a script that will run multiple unix & sql commands. I want to see the output as well as capture it to a log file for further analysis. Is there an easy way to do that instead of adding "tee -a logfile" on everyline or even on the execute line (i.e. script | tee -s logfile). Thanks (1 Reply)
Discussion started by: nimo
1 Replies

7. Shell Programming and Scripting

Want ro capture the debug in output file

I want to capture the debug for the below command in output file . i tried like this but its not working: sh -xv <scriptname> >> output.log i want the output in a log file. Anyone plz help in this (2 Replies)
Discussion started by: chakkaravarthy
2 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 an USSD output then sms it

Hi, I need help. I want to capture an output from a USSD then sms it to a certain number for checking credits balance. I tried with this: echo "asterisk -rx 'gsm send ussd 1 *888#'"| asterisk -rx 'gsm send sms 1 0821733663' The *888# is the USSD, and the 0821733663 is destination number... (1 Reply)
Discussion started by: jazzyzha
1 Replies

10. UNIX for Beginners Questions & Answers

Grep -P does not capture the desired output

Hi, I'm trying to filter the following output to only display information about an alarm where the Status: corresponds to Set. -------------------------------------------------------- Description: hw_optics: RX POWER LANE-0 LOW ALARM Location: Optics0/0/0/21... (6 Replies)
Discussion started by: sand1234
6 Replies
addch(3cur)															       addch(3cur)

Name
       addch, waddch, mvaddch, mvwaddch - add character to window

Syntax
       #include <cursesX.h>

       int addch(ch)
       chtype ch;

       int waddch(win, ch)
       WINDOW *win;
       chtype ch;

       int mvaddch(y, x, ch)
       int y, x;
       chtype ch;

       int mvwaddch(win, y, x, ch)
       WINDOW *win;
       int y, x;
       chtype ch;

Description
       The  routine inserts the character into the default window at the current cursor position and the window cursor is advanced.  The character
       is of the type which is defined in the header file, as containing both data and attributes.

       The routine inserts the character into the specified window at the current cursor position.  The cursor position is advanced.

       The routine moves the cursor to the specified (y, x) position and inserts the character into the default window.  The  cursor  position	is
       advanced after the character has been inserted.

       The  routine moves the cursor to the specified (y, x) position and inserts the character into the specified window.  The cursor position is
       advanced after the character has been inserted.

       All these routines are similar to The following information applies to all the routines.

       If the cursor moves on to the right margin, an automatic newline is performed.  If is enabled, and a character is added to the bottom right
       corner of the screen, the scrolling region will be scrolled up one line.  If scrolling is not allowed, ERR will be returned.

       If  is  a  tab,	newline,  or  backspace, the cursor will be moved appropriately within the window.  If is a newline, the routine is called
       before the cursor is moved to the beginning of the next line.  If newline mapping is off, the cursor will be moved to the  next	line,  but
       the  x  coordinate  will  be unchanged.	If is a tab the cursor is moved to the next tab position within the window.  If is another control
       character, it will be drawn in the ^X notation.	Calling the routine after adding a control character returns  the  representation  of  the
       control character, not the control character.

       Video  attributes can be combined with a character by or-ing them into the parameter.  This will result in these attributes being set.  The
       intent here is that text, including attributes, can be copied from one place to another using and For further information, see

       The and routines are macros.

Return Values
       The and functions return OK on success and ERR on error.

See Also
       clrtoeol(3cur), inch(3cur), scrollok(3cur), standout(3cur), putchar(3s)

																       addch(3cur)
All times are GMT -4. The time now is 07:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy