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
LCDproc(3pm) User Contributed Perl Documentation LCDproc(3pm)
NAME
IO::LCDproc - Perl extension to connect to an LCDproc ready display.
SYNOPSIS
use IO::LCDproc;
my $client = IO::LCDproc::Client->new(name => "MYNAME");
my $screen = IO::LCDproc::Screen->new(name => "screen");
my $title = IO::LCDproc::Widget->new(
name => "date", type => "title"
);
my $first = IO::LCDproc::Widget->new(
name => "first", align => "center", xPos => 1, yPos => 2
);
my $second = IO::LCDproc::Widget->new(
name => "second", align => "center", xPos => 1, yPos => 3
);
my $third = IO::LCDproc::Widget->new(
name => "third", xPos => 1, yPos => 4
);
$client->add( $screen );
$screen->add( $title, $first, $second, $third );
$client->connect() or die "cannot connect: $!";
$client->initialize();
$title->set( data => "This is the title" );
$first->set( data => "First Line" );
$second->set( data => "Second line" );
$third->set( data => "Third Line" );
$client->flushAnswers();
DESCRIPTION
Follow the example above. Pretty straight forward. You create a client, assign a screen, add widgets, and then set the widgets.
IO::LCDproc::Client
It is the back engine of the module. It generates the connection to a ready listening server.
METHODS
new( name => 'Client_Name' [, host => $MYHOSTNAME] [, port => $MYPORTNUMBER] )
Constructor. Takes the following possible arguments (arguments must be given in key => value form):
host, port, and name. name is required.
add( SCREENREF )
Adds the screens that will be attached to this client.
connect()
Establishes connection to LCDproc server (LCDd).
initialize()
Initializes client, screen and all the widgets with the server.
answer()
Reads an answer from the server
flushAnswers()
Flushes all answers from the server (should be called regulary if you don't need the answers)
IO::LCDproc::Screen
METHODS
new( name => 'MYNAME')
Constructor. Allowed options:
heartbeat => 1 or 0.
add( @WIDGETS )
Adds the given widgets to this screen.
set_prio( $prio )
Sets the screen priority with $prio one of
hidden The screen will never be visible
background The screen is only visible when no normal info screens exists
info normal info screen, default priority
foreground an active client
alert The screen has an important message for the user.
input The client is doing interactive input.
IO::LCDproc::Widget
METHODS
new( name => 'MYNAME' )
Constructor. Allowed arguments:
align (left, center, rigth), type (string, title, vbar, hbar, ...), xPos, yPos, data
set()
Sets the widget to the spec'd args. They may be given on the function call or the may be
pre specified.
xPos, yPos, data
save()
Saves current data to be user later.
restore()
Restore previously saved data. (Implicitly calls set)
SEE ALSO
LCDd
AUTHOR
Juan C. Muller, <jcmuller@gmail.com>
COPYRIGHT AND LICENSE
Copyright 2005 by Juan C. Muller
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-04-15 LCDproc(3pm)