Agree with spacebar -- can be simplified. My thoughts:
As to the reason for your error, you cannot use a shell variable ($i in this case) like you are attempting (in single quotes shell will not expand it). You could try:
But I would try something that is much more straight forward than the way you were approaching it.
Last edited by agama; 10-20-2012 at 11:12 PM..
Reason: fixed cut/paste truncation.
hello.,
i have 2 files..
1 file is in this folder
/home/test/ssk/DSA.WLG.20050713211544.20050710.20050713211544
(this part)
other file is in this folder
/home/kk/dev/DSA.WLG.20050711210100.20050710.20050711210100
... (1 Reply)
hi all
i am writing the korn shell script.
i have a SQL script which gives me the folowing output
DSA.WLG.20050713211544.20051025.20050713211544 28991 1130198400
DSA.WLG.20050713211544.20051025.20050713211544 25881 1130198400
DSA.WLG.20050711210100.20051025.20050711210100 25881 ... (3 Replies)
I have this Korn shell script that runs via a cron entry. It runs in a loop "watching" a specific file system for files with a certain name. The file system that it is watching is an upload file system for an FTP server. When files that are the correct name come in, it takes the extension of the... (1 Reply)
Hello All,
Can someone help me to set a user's password from the script using korn shell. The password change is a one time password after user account creation.
I tried providing the input file as the value for password field but password change requires tty so my password from an input file... (3 Replies)
I have to solve some exercises in Korn Shell, but i'm having some problems. For example:
Write a korn shell script with an alfanumeric string as argument. The script lists the file's names in the current directory that contain the given string as substring and that can be read and written.
I... (3 Replies)
1. The problem statement, all variables and given/known data:
Write a korn shell script with an alfanumeric string as argument. The script lists the file's names in the current directory that contain the given string as substring and that can be read and written.
2. Relevant commands, code,... (3 Replies)
There are 4 parameters that I have to pass from korn shell to sql script.
1) I have to check if $1 , $2 , $3 and $4 are null values or not .
How can I do that ?
2) Once its determined that these values are null (in the sense they are empty) how can I pass null values to sql script... (11 Replies)
I am trying to write a shell script which takes an input file as an arguement in the terminal e.g. bash shellscriptname.sh input.txt. I would like for the file to be read line by line each time checking if the .txt file contains certain words or letters(validating the syntax). If the line being... (1 Reply)
Discussion started by: Gurdza32
1 Replies
LEARN ABOUT DEBIAN
qwtpickermachine
QwtPickerMachine(3) Qwt User's Guide QwtPickerMachine(3)NAME
QwtPickerMachine -
A state machine for QwtPicker selections.
SYNOPSIS
#include <qwt_picker_machine.h>
Inherited by QwtPickerClickPointMachine, QwtPickerClickRectMachine, QwtPickerDragPointMachine, QwtPickerDragRectMachine, and
QwtPickerPolygonMachine.
Public Types
enum Command { Begin, Append, Move, End }
typedef QList< Command > CommandList
Public Member Functions
void reset ()
void setState (int)
int state () const
virtual CommandList transition (const QwtEventPattern &, const QEvent *)=0
virtual ~QwtPickerMachine ()
Protected Member Functions
QwtPickerMachine ()
Detailed Description
A state machine for QwtPicker selections.
QwtPickerMachine accepts key and mouse events and translates them into selection commands.
See also:
QwtEventPattern::MousePatternCode, QwtEventPattern::KeyPatternCode
Member Enumeration Documentation
enum QwtPickerMachine::Command
Commands - the output of the state machine.
Constructor & Destructor Documentation
QwtPickerMachine::~QwtPickerMachine () [virtual]
Destructor.
QwtPickerMachine::QwtPickerMachine () [protected]
Constructor.
Member Function Documentation
void QwtPickerMachine::reset ()
Set the current state to 0.
void QwtPickerMachine::setState (intstate)
Change the current state.
int QwtPickerMachine::state () const
Return the current state.
virtual CommandList QwtPickerMachine::transition (const QwtEventPattern &, const QEvent *) [pure virtual]
Transition.
Implemented in QwtPickerClickPointMachine, QwtPickerDragPointMachine, QwtPickerClickRectMachine, QwtPickerDragRectMachine, and
QwtPickerPolygonMachine.
Author
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Version 5.2.2 Mon Aug 1 2011 QwtPickerMachine(3)