02-02-2016
The unreadabilty of the error messages indicates that there are DOS line terminators (0x0D, \r, <CR>) in the script. What editor did you use when creating it? You better use *nix editors.
These 2 Users Gave Thanks to RudiC For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Following is my shell script.
#!/bin/tcsh
view=$1
image=$2
objfld="obj-ppc-$image"
echo $view
echo $image
echo $objfld
echo "cleartool setview $view"
cleartool setview $view;
cd `cd /vob/ios/sys`;
In this "cd" is not working and not getting any error.
my shell is "tcsh"... (3 Replies)
Discussion started by: amitrajvarma
3 Replies
2. UNIX for Dummies Questions & Answers
hi
i have file extentioned with test.vbs. i am able to run this file n execute through command promt but i dont know how to run in shell script
example:
file name is test.vbs which contains
strSoundFile = "C:\windows\Media\Notify.wav"
Set objShell = CreateObject("Wscript.Shell")
strCommand... (5 Replies)
Discussion started by: atl@mav
5 Replies
3. Shell Programming and Scripting
typeset -l section
section=${2:-.}
what does these 2 lines meaning? (1 Reply)
Discussion started by: venkatababu
1 Replies
4. Shell Programming and Scripting
Hello.
I would like to ask your help regarding the cp command. We are using a cp command to create a back-up copy of our file but to no avail. It's just not working. We already checked the file and directory permissions and all seems correct.
We have a script (ftp.script) which calls on... (1 Reply)
Discussion started by: udelalv
1 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
FTP ports opens with the given user name and password and allows to download file through COMMAND PROMPT. Code as below:
H:\>ftp ftpxxxxx
Connected to entvc2ft07-pub.xxxxx.com.
220 Microsoft FTP Service
User (entvc2ft07-pub.xxxxx.com:(none)): userxxxxx
331 User name okay, need... (1 Reply)
Discussion started by: vijayalakshmi.r
1 Replies
6. Shell Programming and Scripting
Hello,
I work on Windows and I use Putty to access a remote UNIX server.
I am trying to build a shell script that will have as main task to open the
Windows command prompt (cmd) and run some Windows commands thereafter. The commands are actually file transfer commands that will download a file... (14 Replies)
Discussion started by: rookie2785
14 Replies
7. Shell Programming and Scripting
I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes
CC=`which gcc`
CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
Discussion started by: oly_r
8 Replies
8. Shell Programming and Scripting
Hi, the following command works in the terminal no problem.
samtools view -h rawlib.bam | perl -ne '{ @line = split( /\s+/ ); $match = 0; while( $line =~ /(\d+)M/g ) { $match = $match + $1 } if( $match >= 80 || $_ =~ /^\@/ ) { print $_ } }' | java -Xmx12G -jar... (8 Replies)
Discussion started by: jdilts
8 Replies
9. Shell Programming and Scripting
Hi,
I am a bit confused ,why would a sed command work fine outside of ksh script but not inside.
e.g
I want to replace all the characters which end with a value and have space at end of it.
so my command for it is :
sed -i "s/$SEPARATOR /$SEPARATOR/g" file_name
This is working fine in... (8 Replies)
Discussion started by: vital_parsley
8 Replies
10. Shell Programming and Scripting
I wish to replace "\\n" with a single white space.
The below does the job on command-line:
$ echo '/fin/app/scripts\\n/fin/app/01/sql' | sed -e 's#\\\\n# #g';
/fin/app/scripts /fin/app/01/sql
However, when i have the same code to a shell script it is not able to get me the same output:... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT CENTOS
qsqleditorfactory
QSqlEditorFactory(3qt) QSqlEditorFactory(3qt)
NAME
QSqlEditorFactory - Used to create the editors used by QDataTable and QSqlForm
SYNOPSIS
#include <qsqleditorfactory.h>
Inherits QEditorFactory.
Public Members
QSqlEditorFactory ( QObject * parent = 0, const char * name = 0 )
~QSqlEditorFactory ()
virtual QWidget * createEditor ( QWidget * parent, const QVariant & variant )
virtual QWidget * createEditor ( QWidget * parent, const QSqlField * field )
Static Public Members
QSqlEditorFactory * defaultFactory ()
void installDefaultFactory ( QSqlEditorFactory * factory )
DESCRIPTION
The QSqlEditorFactory class is used to create the editors used by QDataTable and QSqlForm.
QSqlEditorFactory is used by QDataTable and QSqlForm to automatically create appropriate editors for a given QSqlField. For example if the
field is a QVariant::String a QLineEdit would be the default editor, whereas a QVariant::Int's default editor would be a QSpinBox.
If you want to create different editors for fields with the same data type, subclass QSqlEditorFactory and reimplement the createEditor()
function.
See also QDataTable, QSqlForm, and Database Classes.
MEMBER FUNCTION DOCUMENTATION
QSqlEditorFactory::QSqlEditorFactory ( QObject * parent = 0, const char * name = 0 )
Constructs a SQL editor factory with parent parent, called name.
QSqlEditorFactory::~QSqlEditorFactory ()
Destroys the object and frees any allocated resources.
QWidget * QSqlEditorFactory::createEditor ( QWidget * parent, const QVariant & variant ) [virtual]
Creates and returns the appropriate editor widget for the QVariant variant.
The widget that is returned has the parent parent (which may be zero). If variant is invalid, 0 is returned.
Reimplemented from QEditorFactory.
QWidget * QSqlEditorFactory::createEditor ( QWidget * parent, const QSqlField * field ) [virtual]
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Creates and returns the appropriate editor for the QSqlField field.
QSqlEditorFactory * QSqlEditorFactory::defaultFactory () [static]
Returns an instance of a default editor factory.
void QSqlEditorFactory::installDefaultFactory ( QSqlEditorFactory * factory ) [static]
Replaces the default editor factory with factory. All QDataTable and QSqlForm instantiations will use this new factory for creating field
editors. QSqlEditorFactory takes ownership of \a factory, and destroys it when it is no longer needed.
SEE ALSO
http://doc.trolltech.com/qsqleditorfactory.html http://www.trolltech.com/faq/tech.html
COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license
statement.
AUTHOR
Generated automatically from the source code.
BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you.
Thank you.
The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a
web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially
supported by Trolltech.
If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page
(qsqleditorfactory.3qt) and the Qt version (3.3.8).
Trolltech AS 2 February 2007 QSqlEditorFactory(3qt)