Sponsored Content
Top Forums Shell Programming and Scripting Stuck in this shell script - please help Post 302509358 by jim mcnamara on Wednesday 30th of March 2011 03:12:57 PM
Old 03-30-2011
What exactly did you type - is the trailing semicolon there, for example.
Please post what you tried.
And - what OS (flavor of UNIX) are you running on?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

stuck on ksh script

hi, i need help to write script in korn shell that will display info. on system paging, system process table.system file table inf. thank you (1 Reply)
Discussion started by: neer45
1 Replies

2. Shell Programming and Scripting

simple script but am stuck

hey i am a bit stuck here. i just started work experience and i need to create a simple script which delete all files in a specify folder which are older then 2 days. :mad: i tried but it never works!!! anyone! i dont know much but unix since i mostly work on NT here but i dont wanna disapoint my... (2 Replies)
Discussion started by: GermanJulian
2 Replies

3. UNIX for Dummies Questions & Answers

stuck with a script

Hi There I am pretty new to UNIX and have only been using it from a basic point of view,I now want to start using it and learning more , have got a whole lot of books and documentation from the web and am slowly learning.I have written a get script in windows :- lcd E:\MAIN\PRO\FILES\MAINDB... (1 Reply)
Discussion started by: FOCKER
1 Replies

4. Shell Programming and Scripting

I am stuck in my script

Hi All I have script that find 777 dir with specific extension like .php .Now after finding all 777 directory i will place in httpd.conf using a directory directive ,Now i was not do that,if directory entry exitst in httpd.conf then script ignor it dont show me at stdout else if it dont find... (2 Replies)
Discussion started by: aliahsan81
2 Replies

5. Homework & Coursework Questions

i get stuck with this shell script code

i get stuck here . Anyone could check my work? the user type a group of upper case letters at a time with 0 at the end. Find and display the first letter in alphabetic order. For example, input of F, G, K, S, U, G, D, Q, P , the result should be D Any invalid input character (eg. #, $, 3, a,... (5 Replies)
Discussion started by: sbcvn
5 Replies

6. Shell Programming and Scripting

Script Stuck In Loop

Hi all! Im trying to get this script to check for folders in a year/month/day folder structure and if the day doesnt exist then it makes the day. It will also make sure all of the days before todays date exist as well. This script assumes that the month and year folder already exist. It works... (3 Replies)
Discussion started by: Grizzly
3 Replies

7. Shell Programming and Scripting

korn shell display lenght problem!!! i got stuck on this

Using the KSH, write a shell script called display_by_length, which takes an absolute pathname to a directory and displays all ordinary files in the directory ordered by their length; for each file listed, display the name of the file and its length - nothing else. Extend this script to take an... (1 Reply)
Discussion started by: babuda0059
1 Replies

8. Shell Programming and Scripting

Script to Output Files That Have Got Stuck

Hi, I need to create a script that we will schedule to run say every 30 mins to check a directory for files that have been present for a set period of time. Situation we have is that we have an input folder where files are processed from and once processed they get moved to a done folder,... (1 Reply)
Discussion started by: everythingno
1 Replies

9. Shell Programming and Scripting

stuck on first script with sed issue

Hi, I'm developing my first bash script and have made good progress but stuck at this point. I've run sed on a text file to extract some data and have saved it into a variable e.g. $blah the variable contains emails as follows e.g. <a@b.com> <b@c.com> I'm now trying to edit... (2 Replies)
Discussion started by: newb1000
2 Replies

10. Shell Programming and Scripting

Error in script, STUCK :(

Hi All, I am beginner in scripting. I wrote a simple script to perform some task. It seem to have some error in command line, Kindly somebody help. Thanks #!/bin/bash date cd /home/poojasaxena/Desktop/CMS/script/DataMCMatch function pause(){ read -p "$*" } FILE=$1... (22 Replies)
Discussion started by: nrjrasaxena
22 Replies
QMacMime(3qt)															     QMacMime(3qt)

NAME
QMacMime - Maps open-standard MIME to Mac flavors SYNOPSIS
#include <qmime.h> Public Members QMacMime ( char t ) virtual ~QMacMime () virtual const char * convertorName () = 0 virtual int countFlavors () = 0 virtual int flavor ( int index ) = 0 virtual bool canConvert ( const char * mime, int flav ) = 0 virtual const char * mimeFor ( int flav ) = 0 virtual int flavorFor ( const char * mime ) = 0 virtual QByteArray convertToMime ( QValueList<QByteArray> data, const char * mime, int flav ) = 0 virtual QValueList<QByteArray> convertFromMime ( QByteArray data, const char * mime, int flav ) = 0 Static Public Members QPtrList<QMacMime> all ( QMacMimeType t ) QMacMime * convertor ( QMacMimeType t, const char * mime, int flav ) const char * flavorToMime ( QMacMimeType t, int flav ) DESCRIPTION
The QMacMime class maps open-standard MIME to Mac flavors. Qt's drag-and-drop and clipboard facilities use the MIME standard. On X11, this maps trivially to the Xdnd protocol, but on Mac although some applications use MIME types to describe clipboard formats, others use arbitrary non-standardized naming conventions, or unnamed built- in Mac formats. By instantiating subclasses of QMacMime that provide conversions between Mac flavors and MIME formats, you can convert proprietary clipboard formats to MIME formats. Qt has predefined support for the following Mac flavors: kScrapFlavorTypeUnicode - converted to "text/plain;charset=ISO-10646-UCS-2" and supported by QTextDrag. kScrapFlavorTypeText - converted to "text/plain;charset=system" or "text/plain" and supported by QTextDrag. kScrapFlavorTypePicture - converted to "image/format", where format is a Qt image format, and supported by QImageDrag. kDragFlavorTypeHFS - converted to "text/uri-list", and supported by QUriDrag. You can check if a MIME type is convertible using canConvert() and can perform conversions with convertToMime() and convertFromMime(). See also Drag And Drop Classes, Input/Output and Networking, and Miscellaneous Classes. MEMBER FUNCTION DOCUMENTATION
QMacMime::QMacMime ( char t ) Constructs a new conversion object of type t, adding it to the globally accessed list of available convertors. QMacMime::~QMacMime () [virtual] Destroys a conversion object, removing it from the global list of available convertors. QPtrList<;QMacMime> QMacMime::all ( QMacMimeType t ) [static] Returns a list of all currently defined QMacMime objects of type t. bool QMacMime::canConvert ( const char * mime, int flav ) [pure virtual] Returns TRUE if the convertor can convert (both ways) between mime and flav; otherwise returns FALSE. All subclasses must reimplement this pure virtual function. QValueList<;QByteArray> QMacMime::convertFromMime ( QByteArray data, const char * mime, int flav ) [pure virtual] Returns data converted from MIME type mime to Mac flavor flav. Note that Mac flavors must all be self-terminating. The return value may contain trailing data. All subclasses must reimplement this pure virtual function. QByteArray QMacMime::convertToMime ( QValueList<QByteArray> data, const char * mime, int flav ) [pure virtual] Returns data converted from Mac flavor flav to MIME type mime. Note that Mac flavors must all be self-terminating. The input data may contain trailing data. All subclasses must reimplement this pure virtual function. QMacMime * QMacMime::convertor ( QMacMimeType t, const char * mime, int flav ) [static] Returns the most-recently created QMacMime of type t that can convert between the mime and flav formats. Returns 0 if no such convertor exists. const char * QMacMime::convertorName () [pure virtual] Returns a name for the convertor. All subclasses must reimplement this pure virtual function. int QMacMime::countFlavors () [pure virtual] Returns the number of Mac flavors supported by this convertor. All subclasses must reimplement this pure virtual function. int QMacMime::flavor ( int index ) [pure virtual] Returns the Mac flavor supported by this convertor that is ordinarily at position index. This means that flavor(0) returns the first Mac flavor supported, and flavor(countFlavors()-1) returns the last. If index is out of range the return value is undefined. All subclasses must reimplement this pure virtual function. int QMacMime::flavorFor ( const char * mime ) [pure virtual] Returns the Mac flavor used for MIME type mime, or 0 if this convertor does not support mime. All subclasses must reimplement this pure virtual function. const char * QMacMime::flavorToMime ( QMacMimeType t, int flav ) [static] Returns a MIME type of type t for flav, or 0 if none exists. const char * QMacMime::mimeFor ( int flav ) [pure virtual] Returns the MIME type used for Mac flavor flav, or 0 if this convertor does not support flav. All subclasses must reimplement this pure virtual function. SEE ALSO
http://doc.trolltech.com/qmacmime.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 (qmacmime.3qt) and the Qt version (3.3.8). Trolltech AS 2 February 2007 QMacMime(3qt)
All times are GMT -4. The time now is 02:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy