Solaris 10 : command to copy text to the clipboard.


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 : command to copy text to the clipboard.
# 8  
Old 09-16-2014
Quote:
Originally Posted by achenle
How about /opt/sfw? Is Tcl/Tk installed there?
´/opt/swf´ and ´/opt/swf/bin/tcl´ founded

´/opt/swf/bin/tk´ NOT founded
but ´opt/swf/bin/tknewsbiff´ and ´opt/swf/bin/tkpasswd´ founded
# 9  
Old 09-22-2014
Quote:
Originally Posted by droopy4u
Simple I make from a text file, a special fromatted message via several commands ... and now everything is putted in a text file. And then it has to be copied to put it an other application to send it out without errors and problems.

So via scripting in Solaris
In Unix/Linux if you want output from one command to go into something else you just redirect the output. For example if I want to create and environment vaiable with the timestamp I can just do the following:

export CURR_TIME=`/bin/date +%Y%m%d_%H%M%S`

Why don't you just redirect the output that you want in the text file into the text file?
# 10  
Old 09-23-2014
Sun thanks

Quote:
Originally Posted by gandolf989
In Unix/Linux if you want output from one command to go into something else you just redirect the output. For example if I want to create and environment vaiable with the timestamp I can just do the following:

export CURR_TIME=`/bin/date +%Y%m%d_%H%M%S`

Why don't you just redirect the output that you want in the text file into the text file?
Because it is the idea to copy that (special) format of text in a application GUI ... so putting it in a variable is not helping me to solve the problem.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How do I copy from windows clipboard into VI session?

trying to add my Google analytics code to every page on my site. I want to paste in into every file. I have it in Notepad++. If I open a file in VI, using Putty to connect is it easy to just paste into the VI session? (3 Replies)
Discussion started by: waynehazle
3 Replies

2. UNIX for Dummies Questions & Answers

Clipboard retrieve/paste command

I mainly use Max/MSP for my audio programming, but today I am working on a project that requires the use of shell. Is it possible to do this? Retrieve the contents of the clipboard. Send a keystroke to an application without loosing focus, for example, I want to initiate a paste command (with... (0 Replies)
Discussion started by: fhill2
0 Replies

3. UNIX for Dummies Questions & Answers

Copying a command/line to clipboard

hi all, i am newbie to Unix scripting.. I am writing a script which will have a line of commands, which needs to be copied to clipboard. Any ideas welcome.. Usage:: I am using the script in this way, The script will have some lines (like below) export TERM=xterm; cd test_env; TMOUT=0 ... (1 Reply)
Discussion started by: gkarthik.gk
1 Replies

4. Shell Programming and Scripting

Clipboard transformation scripting

Hello all, I've done a bit of clipboard transformation scripting using xclip before, piping contents with " xclip -o -selection clipboard " to grep, sed, awk, then back into the clipboard with " xclip -i -selection clipboard " ... but I am not a fantastically skilled user of either of the three... (4 Replies)
Discussion started by: la2ar0
4 Replies

5. UNIX for Advanced & Expert Users

Xterm configuration : how to copy/paste in the CLIPBOARD

Hi, I can paste what is in the CLIPBOARD but I can't get xterm copy. and in fact I think I'm not able to select well with the cursor (I don't want to use the mouse)... here is my ~/.Xresources file : XTerm*highlightSelection: true XTerm*VT100.translations: #override \n\ None ... (5 Replies)
Discussion started by: xib.be
5 Replies

6. UNIX for Dummies Questions & Answers

Copy entire contents of file to clipboard

Hi, I am trying to figure out how to copy the contents of a file to the clipboard, then paste into a command. i.e copy contents of file /path/filename.txt to <command> <paste text> Hope that makes sense. Basically tryting to copy the text for use in a command without having to open the... (8 Replies)
Discussion started by: JCA70
8 Replies

7. UNIX for Dummies Questions & Answers

Copy text from a file from VI editor to Windows clipboard

Copy text from a file from VI editor to Windows clipboard, I mean copy entire file in vi editor to notepad. (13 Replies)
Discussion started by: zhshqzyc
13 Replies

8. Solaris

Not able to copy the tree node text in solaris, while easily done in window

I m not able to copy the text present on the tree's node to terminal or other text editor in solaris. I m using <Shift><control> C and V comaand for the same but the text is not being copied and pasted on the text pad or the terminal window. While the same is possible in windows OS using ctrl+c... (3 Replies)
Discussion started by: friendanoop
3 Replies

9. Shell Programming and Scripting

Automatic Copy of File Contents to Clipboard

Could someone show me how to copy the contents of a file to the clipboard automatically without manually selecting its contents? I just want to press the "Paste Key" to show the results. I wish to use this in a ksh script. I'm using Solaris. Thanks! (5 Replies)
Discussion started by: ilak1008
5 Replies
Login or Register to Ask a Question