Hello,
I made a script to copy files from one directory to another and move file after the copy is done. When files are present in the source directory there is no problem but when no file are present I'm getting an error.
Please help !!
---------------------
#!/bin/bash
... (2 Replies)
Hi everybody,
I have two XML files.
I am working on a script that could copy and paste the contents of the first xml file to the desired location in the second xml file.
Here is my first XML file.
This is the second XML file.
Finaly, I wnat to obtain something like that :
... (2 Replies)
I'm having a problem copy/pasting from a txt file in windows to vi. What happens is I copy a chunk of text, go to the putty terminal, go into insert mode, and right click, and it will stop pasting at a random point and freeze up. Nothing I do gets out of it.
This only happens on my account... (1 Reply)
Dear All,
I have a file containing 12 lines.
First 3 lines have 9 values and the remaining 9 lines with no values. I was trying to copy and paste these 9 values of the first 3 lines into last 9 lines simultaneously as A=1.491331, B=1.539000 ..... but I don't know how to cope with this... (9 Replies)
Hello,
I am quite new to shell scripting so don't know all the tools available. What I'm trying to do is open a file optimal.txt search for objectiveValue and copy the number in quotes next to it.
e.g.
...
solutionName="incumbent"
solutionIndex="-1"
objectiveValue="13246"
... (6 Replies)
Hello guys,
I am trying to copy a line in vi editor and paste it with below commands but paste command is not working and instead of paste action prints the p character!!
I should also mention that the server is Solaris...
1) crontab -e
2) j to move down
3) yy to copy the line
4) o to... (4 Replies)
Hi I have a text file with lines beginning with 71303, 71403, 71602,
I need to copy the 10 digit text at position 30 on lines beginning with 71303 (5500011446) to position 99 on every line beginning with 71602 (see example below),
There may be many 71303 lines but I need the text copying to... (2 Replies)
Discussion started by: firefox2k2
2 Replies
LEARN ABOUT DEBIAN
soxtclipboard
SoXtClipboard(3IV)() SoXtClipboard(3IV)()
NAME
SoXtClipboard -- Provides Inventor copy/paste support
INHERITS FROM
SoXtClipboard
SYNOPSIS
#include <Inventor/Xt/SoXtClipboard.h>
typedef void SoXtClipboardPasteCB(void *userData, SoPathList *pathList)
typedef void SoXtClipboardImportCB(void *userData, Atom dataType, void *data, uint32_t numBytes)
#define _XA_CLIPBOARD_ ((Atom) 0)
Methods from class SoXtClipboard:
SoXtClipboard(Widget w, Atom selectionAtom = _XA_CLIPBOARD_)
~SoXtClipboard()
void copy(SoNode *node, Time eventTime)
void copy(SoPath *path, Time eventTime)
void copy(SoPathList *pathList, Time eventTime)
void copy(Atom dataType, void *data, uint32_t numBytes, Time eventTime)
void paste(Time eventTime, SoXtClipboardPasteCB *pasteDoneFunc, void *userData = NULL)
void addPasteInterest(Atom dataType, SoXtClipboardImportCB *pasteImportFunc, void *userData = NULL)
DESCRIPTION
This class manages data transfers for copy and paste. Transfers may occur within the same process, or between different processes. This
uses the Xt selection mechanism to implement the ICCCM protocol for the transfer of data.
METHODS
SoXtClipboard(Widget w, Atom selectionAtom = _XA_CLIPBOARD_)
~SoXtClipboard()
Constructor and destructor. w is the Xt widget for which this clipboard acts as an agent. selectionAtom is the X selection through which
data should be transferred. For quick data transfers, this should be XA_PRIMARY. The default is _XA_CLIPBOARD_ which uses the X clip-
board selection.
void copy(SoNode *node, Time eventTime)
void copy(SoPath *path, Time eventTime)
void copy(SoPathList *pathList, Time eventTime)
This copies the passed scene graph object, and tells the X server that the clipboard now owns the selection which was specified by
selectionAtom in the constructor. When a paste happens (in this window, another window, or another process), the X server will ask this
clipboard for the data it copied here. The eventTime should be the time found in the X event structure which triggered the copy opera-
tion, and is used to ensure synchronization of copy and paste requests. Data targets supported for export are INVENTOR_2_1, INVEN-
TOR_2_1_FILE, INVENTOR_2_0, INVENTOR_2_0_FILE, VRML_1_0, VRML_1_0_FILE. Also exported for backwards compatibility are INVENTOR and
INVENTOR_FILE, which are equivalent to INVENTOR_2_0 and INVENTOR_2_0_FILE.
void copy(Atom dataType, void *data, uint32_t numBytes, Time eventTime)
This behaves like the above copy routines, but the data can be in any format as specified by dataType.
void paste(Time eventTime, SoXtClipboardPasteCB *pasteDoneFunc, void *userData = NULL)
This makes a request to the X server for data to paste from the selection atom specified in the constructor (selectionAtom), then
returns. When the data is retrieved from the selection owner, the pasteDoneFunc callback is invoked. The newly pasted data is passed as
the callback function's pathList argument (an SoPathList). Data targets supported for import are INVENTOR_2_1, INVENTOR_2_1_FILE, INVEN-
TOR_2_0, INVENTOR_2_0_FILE, VRML_1_0, VRML_1_0_FILE. Also imported for backwards compatibility are INVENTOR and INVENTOR_FILE, which
are equivalent to INVENTOR_2_0 and INVENTOR_2_0_FILE.
void addPasteInterest(Atom dataType, SoXtClipboardImportCB *pasteImportFunc, void *userData = NULL)
This extends the paste interest to recognize an additional target as specified by dataType. It can be called multiple times to register
interest in more than one extension. The pasteImportFunc will be called when data of the registered type is pasted. Passing NULL as the
pasteImportFunc will remove paste interest for that data type (even if the data type is one of the defaults). This should be called
before paste() so that paste() will accept pastes of data types that have been registered here. A dataType atom can be created with
XmInternAtom, e.g.: XmInternAtom(XtDisplay(widget),"INVENTOR",False);
SEE ALSO
SoSelection, SoByteStream, SoXt, X Selections
SoXtClipboard(3IV)()