9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
2. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
3. Shell Programming and Scripting
Hi all.
I have a .txt file that I need to sort it
My file is like:
1- 88 chain0 MASTER (FF-TE) FFFF 1962510 /TCK T FD2TQHVTT1 /jtagc/jtag_instreg/updateinstr_reg_1 dff1 (TI,SO)
2- ... (10 Replies)
Discussion started by: Behrouzx77
10 Replies
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
6. UNIX for Dummies Questions & Answers
Hi.
I have a copy-file script (and a move-file script) that I recently tried to make interactive. I tested the former on three files from a text list, and watched to see what would happen. As the cp command was in a while/do/done loop, there was no pause for input: it wrote the file from the... (2 Replies)
Discussion started by: SilversleevesX
2 Replies
7. Shell Programming and Scripting
Hi,
I've modified the syslogd source to include a thread that will keep track of a timer(or a timer thread). My intention is to check the file size of /var/log/messages in every one minute & if the size is more than 128KB, do a echo " " > /var/log/messages, so that the file size will be set... (7 Replies)
Discussion started by: jockey007
7 Replies
8. UNIX for Dummies Questions & Answers
Good morning
I've searched the Forum but couldn't find what I'm searching for.
I'm executing a, for example pepe.sh within a script (hello.sh).
pepe.sh executes and expects an "enter".
How could i told it within hello.sh?
Thanks in advance for your help.
Regards (1 Reply)
Discussion started by: Felix2511
1 Replies
9. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
DtWsmGetWorkspaceInfo(library call) DtWsmGetWorkspaceInfo(library call)
NAME
DtWsmGetWorkspaceInfo -- get detailed workspace information
SYNOPSIS
#include <Dt/Wsm.h>
int DtWsmGetWorkspaceInfo(
Display *display,
Window root,
Atom aWorkspace,
DtWsmWorkspaceInfo **ppWsInfo);
DESCRIPTION
The DtWsmGetWorkspaceInfo function works with the CDE workspace manager, dtwm(1), and returns detailed information on a specific workspace.
The display argument is the X display.
The root argument is the root window of the screen of interest.
The aWorkspace argument is the workspace name (converted to an X atom).
The *ppWsInfo argument is the address of a variable to receive the returned pointer to the workspace information data.
The DtWsmWorkspaceInfo structure contains at least the following members:
Atom workspace The workspace name (con-
verted to an X atom).
unsigned long bg The pixel ID used for the
background color of the
backdrop.
unsigned long fg The pixel ID used for the
foreground color of the
backdrop.
Atom backdropName The backdrop file name
(converted to an X atom).
The file must be in either
X Bitmap file format (with
extension .bm) or X Pixmap
file format (with extension
.pm). The workspace man-
agement services look for
the file along the same
path used for searching
icons. The directory
/usr/dt/backdrops is the
default directory if the
file cannot be found along
the icon search path.
int colorSetId The colorset number used
for this workspace, which
affects the backdrop color
and the button color for
this workspace on the front
panel.
char *pchTitle The title displayed in the
button for this workspace
on the front panel. This
string is interpreted in
the locale in which the CDE
workspace manager, dtwm(1),
is running. The title is
different from the
workspace name. The
workspace name, when con-
verted from an X atom, is
used as the identifier for
a workspace in the
workspace manager function
calls. The CDE workspace
manager, dtwm(1). also uses
the workspace name as a
resource name; thus, the
characters used in a
workspace name are
restricted to the charac-
ters in the X Portable
Character Set. The
workspace name for a
workspace created from the
front panel is generated
automatically by the CDE
workspace manager, dtwm(1).
Window *backdropWindows A pointer to an array of
windows that make up the
backdrop.
int numBackdropWindows The number of elements in
the backdropWindows array.
RETURN VALUE
Upon successful completion, the DtWsmGetWorkspaceInfo function returns Success and the workspace manager returns in *ppWsInfo a pointer to
a DtWsmInfo structure that contains information about the workspace aWorkspace; otherwise, it returns a value not equal to Success.
APPLICATION USAGE
If the DtWsmGetWorkspaceInfo function is not successful, failure may be due to a memory allocation error or failure to find the correct
workspace information (that is, the CDE workspace manager, dtwm(1), is not running). The application must use the DtWsmFreeWorkspaceInfo(3)
function to free the data returned in *ppWsInfo. The *backdropWindows pointer may be useful for applications that are interested in some
events on the root window. Since the backdrop covers the root window, the backdrop catches the button events before they reach the root.
SEE ALSO
Dt/Wsm.h - DtWsm(5), dtwm(1), DtWsmGetWorkspaceList(3), DtWsmFreeWorkspaceInfo(3).
DtWsmGetWorkspaceInfo(library call)