Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Copy text from a file from VI editor to Windows clipboard Post 302090132 by BOFH on Friday 22nd of September 2006 02:20:59 PM
Old 09-22-2006
Quote:
Originally Posted by zhshqzyc
Thans everybody:
Very helpful.

But where can I find the path of mailx?
Do I need to copy it into my subfolder once I find it?
You don't say what version of unix you're accessing so you can either hunt through the paths I posted earlier or use one of the utilities to hunt for it. For example, on Solaris (my main unix),

Code:
$ grep mailx /var/sadm/install/contents
/etc/mail/mailx.rc e mailxrc 0644 root bin 1829 37709 947116850 SUNWcsr
/usr/bin/mailx f none 2511 root mail 126880 47389 1003406180 SUNWcsu
/usr/share/lib/mailx d none 0755 root bin SUNWcsu
/usr/share/lib/mailx/mailx.help f none 0644 root bin 2989 41016 947116849 SUNWcsu
/usr/share/lib/mailx/mailx.help.~ f none 0644 root bin 1064 23687 947116850 SUNWcsu
/usr/share/man/sman1/mailx.1 f none 0444 bin bin 104155 49322 944774393 SUNWman
/usr/ucb/Mail=../bin/mailx s none SUNWscpu
/usr/ucb/mail=../bin/mailx s none SUNWscpu

So I know that mailx is in /usr/bin.

On Linux boxes (the couple I checked anyway), there is no mailx program. The mail program is in /bin

On AIX mailx is in /usr/bin just like Solaris

On HP-UX mailx is in /usr/bin.

So if the system is running linux, use:

Code:
/bin/mail -s "testing" you@email.tld < (filename)

If the system is using a non-Linux Unix, you'd do this instead:

Code:
/usr/bin/mailx -s "testing" you@email.tld < (filename)

Of course you must replace you@email.tld with a valid e-mail address that you receive e-mail from and (filename) must be replaced with the name of the file you're trying to send to yourself.

Good luck.

Carl
 

10 More Discussions You Might Find Interesting

1. 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

2. UNIX for Dummies Questions & Answers

Copy file from Windows to Unix

I have a file in windows that I need to copy to UNIX. How can I FTP binary to the UNIX server. Thanks (2 Replies)
Discussion started by: abou202
2 Replies

3. Solaris

need to copy file from solaris to windows

Hi my OS is solaris 9 , we have requirement to copy 1 file from solaris box to windows machine , so which utility or commands any idea will be appreciated Regards (3 Replies)
Discussion started by: maooah
3 Replies

4. Windows & DOS: Issues & Discussions

need a good text editor for windows

I am looking to start to code some shell scripts, php, and probably some other web stuff. Free is preferred. I was looking at rocketedit but I would rather just use free open source if possible. On my Mac I love to use TextWrangler, so is there a Windows equivalent? For Vista/Win7 64bit ... (5 Replies)
Discussion started by: tlarkin
5 Replies

5. 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

6. 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

7. Shell Programming and Scripting

Copy from vi Editor ( unix ) to windows

How to copy the complete content from a file in vi Editor to windows ( notepad ). I can use " select " and paste it to windows but this is restricted to current page. Not allowing me to scroll down or up when selecting the content.:confused: (1 Reply)
Discussion started by: frintocf
1 Replies

8. UNIX and Linux Applications

Notepad++ hang when open file edited in other text editor

Hi, I would like to ask about the notepad++ text editor application, Although there are alternative and more great text editor in linux (gedit, geany, jedit) im still using the notepad++ sometimes cause for some of my own reason one of those is the minimalist text(what i mean is notepad++ has a... (2 Replies)
Discussion started by: jao_madn
2 Replies

9. 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

10. Solaris

Solaris 10 : command to copy text to the clipboard.

I'm searching a command to copy text to the clipboard. xclip and xsel are commands which are available on several kind Linux and Unix OS, but is unfortenuately not available on solaris 10. REF : xpt.sourceforge.net/techdocs/nix/x/general/xwin12-Xclipboard/single/ clipboard of openSolaris is... (9 Replies)
Discussion started by: droopy4u
9 Replies
freespeak(1)							   User Commands						      freespeak(1)

NAME
freespeak -- GNOME frontend to online translator engines. SYNOPSIS
freespeak [--version] [-h, --help] DESCRIPTION
With FreeSpeak you can translate text and web pages using online translation engines. To perform a translation select your translator of choice. Then you select the languages through which you wish to translate your data. Finally press the "Translate" button. You can translate both text and web pages. Some translators don't support both modes so it may happen that your preferred translator is not present in the drop down list. You can tune all FreeSpeak settings in the preferences dialog. Copy to clipboard Copy the translated data to the clipboard once the translation is complete. Paste from clipboard Paste data to be translated, from the clipboard to the GUI. This only happens when you open a new translation. If you are trying to perform a web page translation and the clipboard is not holding a valid URL, FreeSpeak is not going to paste it in the URL entry. Default translator The translator to use every time you open a new translation. It will be set in the drop down list only if the translation mode you requested is supported by the translator you chose. Key bindings Set several desktop-wide key bindings for doing quick translation operations. OPTIONS
--version Display version number with copyright and exit. -h, --help Show help message. AUTHOR
This manual page was written by Luca Bruno lethalman88@gmail.com. REPORTING BUGS
Report bugs to <lethalman88@gmail.com> or visit the bug tracker at http://developer.berlios.de/bugs/?group_id=10396. COPYRIGHT
Copyright (c) 2008 Luca Bruno <lethalman88@@gmail.com>. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. FreeSpeak 0.3.0 JANUARY 2009 freespeak(1)
All times are GMT -4. The time now is 05:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy