Sponsored Content
Top Forums UNIX for Advanced & Expert Users Can't pass filename to dtpad editor Post 302184395 by edhamilt on Friday 11th of April 2008 10:55:28 AM
Old 04-11-2008
for further clarification,
I don't receive any errros when attempting to pass dtpad a filename,
it just brings up a blank window...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

pass argument to a filename

How can I use the value of an argument as a filename? Example: The argument for a process is 999. I would like the output of the process to be placed in a file called 999. I have tried using $$1, but that only assigns a unigue number. thanks JP (1 Reply)
Discussion started by: jpprial
1 Replies

2. UNIX for Dummies Questions & Answers

dtpad?

try{ng to find an easy to use text editor for the novice user (vi is too complicated, and pico may be a second choice). the issue I'm having is when the user(in dtpad) copies from another platform (e.g. IBM - MVS, windows), special characters show up such as carriage returns, etc. I know this... (2 Replies)
Discussion started by: douknownam
2 Replies

3. UNIX for Dummies Questions & Answers

Can't pass filename to dtpad editor

I posted this in the Advanced forum, thought I'd try it here as well... At the command line, If I type: %dtpad filename & It just opens up a blank dtpad window (and no error is returned), just as if I typed: %dtpad & And no difference if I give it the pathname, such as: %dtpad... (1 Reply)
Discussion started by: edhamilt
1 Replies

4. UNIX for Dummies Questions & Answers

Pasting text in VI editor from a different editor

Hi, I knw its a silly question, but am a newbie to 'vi' editor. I'm forced to use this, hence kindly help me with this question. How can i paste a chunk 'copied from' a different editor(gedit) in 'vi editor'? As i see, p & P options does work only within 'vi'. (10 Replies)
Discussion started by: harishmitty
10 Replies

5. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

6. Shell Programming and Scripting

Filename from splitting files to have the same filename of the original file with counter value

Hi all, I have a list of xml file. I need to split the files to a different files when see the <ko> tag. The list of filename are B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml ... (3 Replies)
Discussion started by: natalie23
3 Replies

7. Shell Programming and Scripting

How to pass a filename as a command line argument

Hi,I have a script which is given below :#!/bin/bash. ini_script.shdb2 connect to $DB_NAME user $DB2_UID using $DB2_PASSWORDfor file in `ls -1 ./sql/ddw/`do echo "Executing the file $file" echo db2 -tvf $filedonedb2 quiti want this script to accept directorie's names present in... (1 Reply)
Discussion started by: ektubbe
1 Replies

8. Shell Programming and Scripting

How to Pass filename to AWK in bash script

I have written a script which works fine, to remove patterns contained in EXCLUDE.DAT from input.txt awk 'BEGIN {n=0;while (getline < "EXCLUDE.DAT" > 0){ex=$0;n++}} {for(var in ex){print var "-" ex $0 ;i++}}' input.txt The last problem I need to solve is how to pass the file... (3 Replies)
Discussion started by: nixie
3 Replies

9. Shell Programming and Scripting

How to pass filename as arguement to awk command?

Hi, I am facing one issue. The awk command works fine if i hardcode the file name but if is pass it as an arguement it doesn't work. For e.g:Below commands works fine awk -v A="$type" '{F=substr($0,23,8) "_LTD_" A ".txt"; print $0 >> F; close(F) }' RL004.txt But the below command does not... (2 Replies)
Discussion started by: Neelkanth
2 Replies

10. Shell Programming and Scripting

How to pass subject,mailbody and filename as parameters to function?

Hi Experts, how to pass subject,mailbody and filename as parameters to function. mode=$1 file=/db/files/uniq.txt mail_send() { export MAILPART=$(uuidgen) export MAILPART_BODY=$(uuidgen) { echo "TO:nalu.d@hes.com" echo "Subject:$subject" echo "MIME-Version: 1.0" ... (0 Replies)
Discussion started by: nalu
0 Replies
DwtStartCopyToClipboard(3Dwt)											     DwtStartCopyToClipboard(3Dwt)

Name
       DwtStartCopyToClipboard - Sets up storage and data structures to receive clipboard data.

Syntax
       int DwtStartCopyToClipboard(display, window, clip_label,
				  time, widget, callback, item_id)
	    Display *display;
	    Window window;
	    DwtCompString clip_label;
	    Time time;
	    Widget widget;
	    VoidProc callback;
	    long *item_id;

Arguments
       display	 Specifies  a pointer to the Display structure that was returned in a previous call to XOpenDisplay.  For information on XOpenDis-
		 play and the Display structure, see the Guide to the Xlib Library: C Language Binding.

       window	 Specifies the window ID that relates the application window to the clipboard.	The same application instance should pass the same
		 window ID to each clipboard function that it calls.

       clip_label
		 Specifies  the  label	to  be	associated with the data item.	This argument is used to identify the data item, for example, in a
		 clipboard viewer.  An example of a label is the name of the application that places the data in the clipboard.

       time	 Specifies the timestamping of the event that triggered the copy.

       widget	 Specifies the ID of the widget that will receive messages requesting data previously passed  by  name.   This	argument  must	be
		 present in order to pass data by name.  Any valid widget ID in your application can be used.  All message handling is done by the
		 cut and paste functions.

       callback  Specifies the address of the callback function that is called when the clipboard needs data that was originally passed  by  name.
		 This  is  also  the  callback to receive the DELETE message for items that were originally passed by name.  This argument must be
		 present in order to pass data by name.

       item_id	 Specifies the number assigned to this data item.  The application uses this number in calls to DwtCopyToClipboard,  DwtEndCopyTo-
		 Clipboard, and DwtCancelCopyToClipboard.

Description
       The  DwtStartCopyToClipboard  function sets up storage and data structures to receive clipboard data.  An application calls DwtStartCopyTo-
       Clipboard during a cut or copy operation.  The data item that these structures receive through calls to DwtCopyToClipboard then becomes the
       next item to be pasted (the next-paste item) in the clipboard after the call to DwtEndCopyToClipboard.

       DwtStartCopyToClipboard is like DwtBeginCopyToClipboard except that it has the time argument to support the ICCCM clipboard selection mech-
       anism.  To perform cut and paste operations between your application and an application using the ICCCM clipboard selection mechanism,  you
       must use DwtStartCopyToClipboard and provide a timestamping value for time, not a CurrentTime value.  Use of the value CurrentTime for time
       may cause the ICCCM interface to fail.

       The window and callback arguments must be present in order to pass data by name.

       The callback format is as follows:

       function name(widget, data_id, private_id, reason)
	    Widget *widget;
	    int *data_id;
	    int *private_id;
	    int *reason;

       widget	 Specifies the ID of the widget passed to DwtStartCopyToClipboard.

       data_id	 Specifies the identifying number returned by DwtCopyToClipboard, which identifies the pass-by-name data.

       private_id
		 Specifies the private information passed to DwtCopyToClipboard.

       reason	 Specifies the reason, which is either DwtCRClipboardDataDelete or DwtCRClipboardDataRequest.

Return Values
       This function returns one of these status return constants:

       ClipboardSuccess   The function is  success-
			  ful.
       ClipboardLocked	  The	 function    failed
			  because the clipboard was
			  locked  by another appli-
			  cation.  The	application
			  can  continue to call the
			  function  with  the  same
			  parameters	until	the
			  clipboard  is   unlocked.
			  Optionally,  the applica-
			  tion can ask if the  user
			  wants  to  keep trying or
			  to give up on the  opera-
			  tion.

See Also
       DwtCopyToClipboard(3Dwt), DwtEndCopyToClipboard(3Dwt), DwtCancelCopyToClipboard(3Dwt), DwtBeginCopyToClipboard(3Dwt)
       Guide to the XUI Toolkit: C Language Binding
       Guide to the XUI Toolkit Intrinsics: C Language Binding

														     DwtStartCopyToClipboard(3Dwt)
All times are GMT -4. The time now is 03:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy