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:
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.
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)
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)
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)
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)
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)
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)
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)
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)
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
LEARN ABOUT DEBIAN
gtk2::clipboard
Gtk2::Clipboard(3pm) User Contributed Perl Documentation Gtk2::Clipboard(3pm)NAME
Gtk2::Clipboard - wrapper for GtkClipboard
HIERARCHY
Glib::Object
+----Gtk2::Clipboard
METHODS
$clipboard->set_can_store (...)
o ... (list) of Gtk2::TargetEntry's
Since: gtk+ 2.6
$clipboard->clear
display = $clipboard->get_display
Since: gtk+ 2.2
clipboard = Gtk2::Clipboard->get_for_display ($display, $selection)
o $display (Gtk2::Gdk::Display)
o $selection (Gtk2::Gdk::Atom)
Since: gtk+ 2.2
clipboard = Gtk2::Clipboard->get ($selection)
o $selection (Gtk2::Gdk::Atom)
$clipboard->set_image ($pixbuf)
o $pixbuf (Gtk2::Gdk::Pixbuf)
Since: gtk+ 2.6
object = $clipboard->get_owner
$clipboard->request_contents ($target, $callback, $user_data=undef)
o $target (Gtk2::Gdk::Atom)
o $callback (scalar)
o $user_data (scalar)
$clipboard->request_image ($callback, $user_data=undef)
o $callback (scalar)
o $user_data (scalar)
Since: gtk+ 2.6
$clipboard->request_rich_text ($buffer, $callback, $user_data=undef)
o $buffer (Gtk2::TextBuffer)
o $callback (scalar)
o $user_data (scalar)
Since: gtk+ 2.10
$clipboard->request_targets ($callback, $user_data=undef)
o $callback (scalar)
o $user_data (scalar)
Since: gtk+ 2.4
$clipboard->request_text ($callback, $user_data=undef)
o $callback (scalar)
o $user_data (scalar)
$clipboard->request_uris ($func, $data=undef)
o $func (scalar)
o $data (scalar)
Since: gtk+ 2.14
$clipboard->store
Since: gtk+ 2.6
$clipboard->set_text ($text)
o $text (string)
selectiondata or undef = $clipboard->wait_for_contents ($target)
o $target (Gtk2::Gdk::Atom)
pixbuf or undef = $clipboard->wait_for_image
Since: gtk+ 2.6
list = $clipboard->wait_for_rich_text ($buffer)
o $buffer (Gtk2::TextBuffer)
Since: gtk+ 2.10
list = $clipboard->wait_for_targets
Returns a list of GdkAtom's.
Since: gtk+ 2.4
string = $clipboard->wait_for_text
scalar = $clipboard->wait_for_uris
Since: gtk+ 2.14
boolean = $clipboard->wait_is_image_available
Since: gtk+ 2.6
boolean = $clipboard->wait_is_rich_text_available ($buffer)
o $buffer (Gtk2::TextBuffer)
Since: gtk+ 2.10
boolean = $clipboard->wait_is_target_available ($target)
o $target (Gtk2::Gdk::Atom)
Since: gtk+ 2.6
boolean = $clipboard->wait_is_text_available
boolean = $clipboard->wait_is_uris_available
Since: gtk+ 2.14
boolean = $clipboard->set_with_data ($get_func, $clear_func, $user_data, ...)
o $get_func (scalar)
o $clear_func (scalar)
o $user_data (scalar)
o ... (list) of Gtk2::TargetEntry's
boolean = $clipboard->set_with_owner ($get_func, $clear_func, $owner, ...)
o $get_func (scalar)
o $clear_func (scalar)
o $owner (Glib::Object)
o ... (list) of Gtk2::TargetEntry's
SIGNALS
owner-change (Gtk2::Clipboard, Gtk2::Gdk::Event)
SEE ALSO
Gtk2, Glib::Object
COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.14.2 2012-05-27 Gtk2::Clipboard(3pm)