Sponsored Content
Top Forums UNIX for Advanced & Expert Users What's your most useful shell? Post 302229971 by otheus on Thursday 28th of August 2008 09:34:15 AM
Old 08-28-2008
Quote:
Originally Posted by jb_bsd
i've multiple .htm on how-to-use screen saved but have no reason to use it yet (one CPU on the network).
Does that reflect lack of computing power or lack of complexity?
If it's the former:

1036 9716 0.0 0.1 7532 3016 ? Ss Jul26 8:50 SCREEN -c
1036 30119 0.0 0.1 10520 3944 ? Ss Jul24 41:53 SCREEN

That's 50 minutes -- 0.1% -- of computing time in a month.

If it's the latter, well, it all depends on how much you use the command line, I guess, and how much you like moving your hands from the mouse to keyboard and back. On a laptop or special keyboards, it's only a slight gain in productivity.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to run unix commands in a new shell inside a shell script?

Hi , I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell. So scenario is that - I need to have one shell script which is ran as a part of crontab - in this shell script I need to do a... (2 Replies)
Discussion started by: hkapil
2 Replies

2. AIX

Difference between writing Unix Shell script and AIX Shell Scripts

Hi, Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies

3. Linux

How to Start a Shell as Login shell instead of ordinary shell

Hi I tried with bash --login option. but the output is siva:~$ bash --login siva:~$ is there any way to make the shell ask for user id and password ( and login as different user instead of using sudo / su ) Thx in advance Siva (3 Replies)
Discussion started by: Sivaswami
3 Replies

4. Shell Programming and Scripting

Help need to make a shell script run for ffmpeg vhook watermaking in shell

i have a small problem getting a batxh shell script to run in shell this is the code the problem seems to be centered around the ffmpeg command, something maybe to do with the ' ' wrapping around the vhook part command this is a strange problem , if i take the ffmpeg command and... (1 Reply)
Discussion started by: wingchun22
1 Replies

5. Shell Programming and Scripting

How to run cmds after changing to a new env (shell) in a shell script

Hi, I am using HP-UNIX. I have a requirement as below I have to change env twice like: cadenv <env> cadenv <env> ccm start -d /dbpath ccm tar -xvf *.tar ccm rcv .... mv *.tar BACKUP but after I do the first cadenv <env> , I am unable to execute any of the later commands . ... (6 Replies)
Discussion started by: charlei
6 Replies

6. Shell Programming and Scripting

simple shell - how to get a parameter typed in a shell script

Hi, I am new to unix and using linux 7.2. I would like to create a script that would make it easyer for me to run my java programms. At the moment I have to type java myJavaprogram I am trying to write a script that will allow me to type something like this "myscript myJavaprogram" or maybe... (4 Replies)
Discussion started by: cmitulescu
4 Replies

7. Shell Programming and Scripting

calling 'n' number of shell scripts based on dependency in one shell script.

Hello gurus, I have three korn shell script 3.1, 3.2, 3.3. I would like to call three shell script in one shell script. i m looking for something like this call 3.1; If 3.1 = "complete" then call 3.2; if 3.2 = ''COMPlete" then call 3.3; else exit The... (1 Reply)
Discussion started by: shashi369
1 Replies

8. Shell Programming and Scripting

Any shell or hack that makes the shell command line take vi commands?

basically i'm tired of hitting the left arrow a few dozen times when correcting a mistake or modifying a history command i'd like to use vim style key shortcuts while on the command line so that a 55 moves the cursor 55 places to the left... and i want all the other vi goodies, search of... (3 Replies)
Discussion started by: marqul
3 Replies

9. UNIX for Dummies Questions & Answers

Shell script to read lines in a text file and filter user data Shell Programming and Scripting

sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies

10. Shell Programming and Scripting

Pass C shell array to another C shell script(csh) and shell(sh)

Dear Friends, Please help me on this my script name is send.csh In this i have written the statement like this set args = ( city state country price ) I want to pass this array to another c shell called receiver.csh. and i want to use it in this c shell or how to pass to... (2 Replies)
Discussion started by: SA_Palani
2 Replies
curs_sp_funcs(3X)														 curs_sp_funcs(3X)

NAME
new_prescr - curses screen-pointer extension SYNOPSIS
#include <curses.h> int assume_default_colors_sp(SCREEN*, int, int); int baudrate_sp(SCREEN*); int beep_sp(SCREEN*); bool can_change_color_sp(SCREEN*); int cbreak_sp(SCREEN*); int color_content_sp(SCREEN*, short, short*, short*, short*); int curs_set_sp(SCREEN*, int); int define_key_sp(SCREEN*, const char *, int); int def_prog_mode_sp(SCREEN*); int def_shell_mode_sp(SCREEN*); int delay_output_sp(SCREEN*, int); int doupdate_sp(SCREEN*); int echo_sp(SCREEN*); int endwin_sp(SCREEN*); int erasechar_sp(SCREEN*); int filter_sp(SCREEN*); int flash_sp(SCREEN*); int flushinp_sp(SCREEN*); int get_escdelay_sp(SCREEN*); int getmouse_sp(SCREEN*, MEVENT*); WINDOW* getwin_sp(SCREEN*, FILE*); int halfdelay_sp(SCREEN*); bool has_colors_sp(SCREEN*); bool has_ic_sp(SCREEN*); bool has_il_sp(SCREEN*); int has_key_sp(SCREEN*, int); bool has_mouse_sp(SCREEN*); int init_color_sp(SCREEN*, short, short, short, short); int init_pair_sp(SCREEN*, short, short, short); int intrflush_sp(SCREEN*, WINDOW*, bool); bool isendwin_sp(SCREEN*); bool is_term_resized_sp(SCREEN*, int, int); char* keybound_sp(SCREEN*, int, int); int key_defined_sp(SCREEN*, const char *); NCURSES_CONST char * keyname_sp(SCREEN*, int); int keyok_sp(SCREEN*, int, bool); char killchar_sp(SCREEN*); int mcprint_sp(SCREEN*, char *, int); int mouseinterval_sp(SCREEN*, int); mmask_t mousemask_sp(SCREEN*, mmask_t, mmask_t *); int mvcur_sp(SCREEN*, int, int, int, int); int napms_sp(SCREEN*, int); WINDOW* newpad_sp(SCREEN*, int, int); SCREEN* new_prescr(void); SCREEN* newterm_sp(SCREEN*, NCURSES_CONST char *, FILE *, FILE *); WINDOW* newwin_sp(SCREEN*, int, int, int, int); int nl_sp(SCREEN*); int nocbreak_sp(SCREEN*); int noecho_sp(SCREEN*); int nofilter_sp(SCREEN*); int nonl_sp(SCREEN*); void noqiflush_sp(SCREEN*); int noraw_sp(SCREEN*); int pair_content_sp(SCREEN*, short, short*, short*); void qiflush_sp(SCREEN*); int raw_sp(SCREEN*); int reset_prog_mode_sp(SCREEN*); int reset_shell_mode_sp(SCREEN*); int resetty_sp(SCREEN*); int resize_term_sp(SCREEN*, int, int); int resizeterm_sp(SCREEN*, int, int); int restartterm_sp(SCREEN*, NCURSES_CONST char*, int, int *); int ripoffline_sp(SCREEN*, int, int (*)(WINDOW*, int)); int savetty_sp(SCREEN*); int scr_init_sp(SCREEN*, const char *); int scr_restore_sp(SCREEN*, const char *); int scr_set_sp(SCREEN*, const char *); TERMINAL* set_curterm_sp(SCREEN*, TERMINAL*); int set_escdelay_sp(SCREEN*, int); int set_tabsize_sp(SCREEN*, int); int slk_attroff_sp(SCREEN*, const chtype); int slk_attron_sp(SCREEN*, const chtype); int slk_attr_set_sp(SCREEN*, const attr_t, short, void*); int slk_attrset_sp(SCREEN*, const chtype); int slk_attr_sp(SCREEN*); int slk_clear_sp(SCREEN*); int slk_color_sp(SCREEN*, short); int slk_init_sp(SCREEN*, int); int slk_label_sp(SCREEN*, int); int slk_noutrefresh_sp(SCREEN*); int slk_refresh_sp(SCREEN*); int slk_restore_sp(SCREEN*); int slk_set_sp(SCREEN*, int, const char *, int); int slk_touch_sp(SCREEN*); int start_color_sp(SCREEN*); attr_t term_attrs_sp(SCREEN*); chtype termattrs_sp(SCREEN*); char* termname_sp(SCREEN*); int typeahead_sp(SCREEN*, int); NCURSES_CONST char* unctrl_sp(SCREEN*, chtype); int ungetch_sp(SCREEN*, int); int ungetmouse_sp(SCREEN*,MEVENT *); int unget_wch_sp(SCREEN*, const wchar_t); int use_default_colors_sp(SCREEN*); void use_env_sp(SCREEN*, bool); int use_legacy_coding_sp(SCREEN*, int); int vid_attr_sp(SCREEN*, attr_t, short, void *); int vidattr_sp(SCREEN*, chtype); int vid_puts_sp(SCREEN*, attr_t, short, void *, NCURSES_SP_OUTC); int vidputs_sp(SCREEN*, chtype, NCURSES_SP_OUTC); wchar_t* wunctrl_sp(SCREEN*, cchar_t *); #include <form.h> int new_form_sp(SCREEN*, FIELD **); #include <menu.h> int new_menu_sp(SCREEN*, ITEM **); #include <panel.h> int ceiling_panel(SCREEN*); PANEL* ground_panel(SCREEN*); int update_panels_sp(SCREEN*); #include <term.h> int del_curterm_sp(SCREEN*, TERMINAL *); int putp_sp(SCREEN*, const char *); int tgetflag_sp(SCREEN*, char *, const char *); int tgetent_sp(SCREEN*, char *, const char *); int tgetnum_sp(SCREEN*, NCURSES_CONST char *); char* tgetstr_sp(SCREEN*, NCURSES_CONST char *, char **); int tigetflag_sp(SCREEN*, NCURSES_CONST char *); int tigetnum_sp(SCREEN*, NCURSES_CONST char *); char* tigetstr_sp(SCREEN*, NCURSES_CONST char *); int tputs_sp(SCREEN*, const char *, int, NCURSES_SP_OUTC); DESCRIPTION
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of the configurations supported by ncurses; it adds new entrypoints without changing the meaning of any of the existing ones. IMPROVED FUNCTIONS Most of the functions are new versions of existing functions. A parameter is added at the front of the parameter list. It is a SCREEN pointer. The existing functions all use the current screen, which is a static variable. The extended functions use the specified screen, thereby reducing the number of variables which must be modified to update multiple screens. NEW FUNCTIONS Here are the new functions: ceiling_panel this returns a pointer to the topmost panel in the given screen. ground_panel this returns a pointer to the lowest panel in the given screen. new_prescr when creating a new screen, the library uses static variables which have been preset, e.g., by use_env(3X), filter(3X), etc. With the screen-pointer extension, there are situations where it must create a current screen before the unextended library does. The new_pre- scr function is used internally to handle these cases. It is also provided as an entrypoint to allow applications to customize the library initialization. NOTES
This extension introduces some new names: NCURSES_SP_FUNCS This is set to the library patch-level number. In the unextended library, this is zero(0), to make it useful for checking if the ex- tension is provided. NCURSES_SP_NAME The new functions are named using the macro NCURSES_SP_NAME, which hides the actual implementation. Currently this adds a "_sp" suf- fix to the name of the unextended function. This manual page indexes the extensions showing the full name. However the proper usage of these functions uses the macro, to provide for the possibility of changing the naming convention for specific library configura- tions. NCURSES_SP_OUTC This is a new function-pointer type to use in the screen-pointer functions where an NCURSES_OUTC is used in the unextended library. NCURSES_OUTC This is a function-pointer type used for the cases where a function passes characters to the output stream, e.g., vidputs(3X). PORTABILITY
These routines are specific to ncurses. They were not supported on Version 7, BSD or System V implementations. It is recommended that any code depending on ncurses extensions be conditioned using NCURSES_SP_FUNCS. SEE ALSO
curses(3X), curs_opaque(3X), curs_threads(3X). curs_sp_funcs(3X)
All times are GMT -4. The time now is 02:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy