![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script to search for text in a file and copy file | imeadows | UNIX for Dummies Questions & Answers | 9 | 3 Weeks Ago 06:12 PM |
| DOS/Windows CR to a UNIX LF 17 MB text file | tex | Windows & DOS: Issues & Discussions | 9 | 05-21-2008 09:31 PM |
| I want to copy the text output from a 'nohup.out' file. | Iamthe great | UNIX for Dummies Questions & Answers | 3 | 05-01-2007 09:41 AM |
| Automatic Copy of File Contents to Clipboard | ilak1008 | Shell Programming and Scripting | 5 | 10-10-2006 08:43 AM |
| how to remove ^M from windows text file in unix | pragy1999 | Shell Programming and Scripting | 1 | 04-13-2006 07:04 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
|||
|
|||
|
Using Putty ... .to copy whole contains to your clipboard then ... what you do is ...
1. Clear the screen .. 2. Clear the scrollback by right click on the top bar and select the option "clear scrollback". 3. From the same option you will find "change settings" --> select this option and againg select "window" option where specify the huge no. say 99999 in no. line for scrollback where it is 200 by default. 4. Now run the file by using the cat <filename> 5. Right click on the top bar and select the "copy all to clipboard" 6. paste it in the notepad. you get file in the other way also. 1. You can select the "logging " -> and select the radio button "Log all session output" in Session logging. 2. In the log file name .. specify the log file location by clicking the browse button. 3. Now run the file by cat <filename>. 4. After the file contains end. you can see the the log file which you specified in the log file. if any questions pls feel free to ask ... thanks Satish Last edited by thaduka; 09-22-2006 at 06:43 AM. |
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
Quote:
Quote:
Carl |
|
#10
|
|||
|
|||
|
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? |
|
#11
|
|||
|
|||
|
type mailx #gives path of mailx
|
|
#12
|
|||
|
|||
|
Quote:
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 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) Code:
/usr/bin/mailx -s "testing" you@email.tld < (filename) Good luck. Carl |
|
#13
|
|||
|
|||
|
or trying to find the mailx on your system you could use the find command "find [search-destination i.e. "/"] -name mailx"
- only this demands you to have the find command embedded on your system, eventhough this is pretty comon on most unixes. Otherwise you could use "mail" as someone surgested, another one is sendmail which is also possible that you have. - note that either mailer could be used with a number of parameters, above/below is only shown the most simplified you need; "more {filename} | mailx {you@email.tld}" ~ you could also use the cat instead of more, they do the same in this matter... - I hope all these surgestions points you out to a solution for your problem. ps. Putty is very good dump terminal, and note that you are able to configure it in numerous ways, that could help you out while connected to a unix shell. //congo |
|
#14
|
|||
|
|||
|
use find
to find mailx or any thing else, just type
Code:
find / -name "what you are looking for" 2>/dev/null the above operation may take a while. Hope that helped |
|||
| Google The UNIX and Linux Forums |