Clearing paste/clip board


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Clearing paste/clip board
# 1  
Old 05-12-2004
Clearing paste/clip board

Hello.....

Is there anyway that I can clear the clipboard/paste/buffer in UNIX, Xterm, telnet?

I have a number of scripts that require values being inputted correctly by the user. I have nothing to validate the values so I have to put trust in their ability to cut/paste correctly. Smilie

When I prompt them to put in the value they will (in most cases)cut paste and then run the program. What i want to do is put a second prompt that request the value again, i'll then validate the two values to be the same.

If they have cut the value into the buffer and simply pasted it twice then any mistakes on their part wil be passed on. How can I clear this buffer? not sure if a "UNIX" buffer is being used or that of the Operating system, Windows?

Any ideas????

Cheers
and
Beers,

Neil
# 2  
Old 05-12-2004
you mean from a windows client connected to a unix box? running the program off of the unix box?

so you want to clear the clipboard on the clients windows machine? i dont think you can do that. however i could very well be wrong.

however i could be misunderstanding your question. if that is however what you mean ill move this to the windows forum.
# 3  
Old 05-13-2004
Yes...you have it how I meant it. Connecting to the unix box from windows and runing the program on the UNIX box. I don't think it can be done from within a shell script or simular....but you never know what some clever person has figured out.

Cheers,

Neil
# 4  
Old 05-13-2004
yeah im not sure about doing that. i wouldnt really think that you could do that....but maybe you can, i dunno.
# 5  
Old 05-13-2004
He's right, you know. You have no control over a client's clipboard. Can't you just write pattern-matching code to validate the input yourself?
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Programming

Clip mask on all screen

Hello everyone. I'm programming in C with xlib (standart libs). I need set GC with transparent pixmap (in some pixels). I have colored pixmap, that set tile for GC via XSetTile. This pixmap is painted on all screen. And I have mask, created by this pixmap. This mask is set by XSetClipMask. But... (1 Reply)
Discussion started by: Yuriy
1 Replies

2. UNIX for Advanced & Expert Users

trim 165 MB video clip with ffmpeg (only last 3 minutes)

Hi original video clip > ls -alh reallynotpr0n.flv -rw-r--r-- 1 jonny staff 165M Nov 18 19:57 reallynotpr0n.flvtrying to cut only last 3 minutes of the clip out. > ffmpeg -i reallynotpr0n.flv -vcodec copy -acodec copy -ss 00:52:00 -t 00:03:48 trimmed_video.avi ffmpeg version 0.7.7,... (3 Replies)
Discussion started by: slashdotweenie
3 Replies

3. Shell Programming and Scripting

clip selective text and minus

After doing some scripting in a log file, I am left with some lines like this. 10:00:00 Received Message Message ID 1 10:05:00 Published Message Message ID 1 10:10:00 Received Message Message ID 2 10:15:00 Published Message Message ID 2 10:20:00 Received Message Message ID 3 10:26:00... (1 Reply)
Discussion started by: srini123
1 Replies

4. HP-UX

clearing history

HI, Can anybody tell me...what is a command for clearing command history in HP-UX machine. I tried 'history -c' but it is not applicable.... Thanks JAGDISH MACHHI (4 Replies)
Discussion started by: jagdish.machhi@
4 Replies

5. UNIX for Dummies Questions & Answers

Clearing Swapfiles?

Hi, Does anyone know of a command to safely clear the swapfiles to free up diskspace? It's done at shutdown/startup, but I'd rather not have down time, if possible. Thanks, MrToast (BTW, Mac OS X 10.3.5 ;) ) (3 Replies)
Discussion started by: MrToast
3 Replies
Login or Register to Ask a Question