Sponsored Content
Top Forums Shell Programming and Scripting Creating word document (.doc) with attachment in unix solaris Post 302606964 by vbe on Tuesday 13th of March 2012 09:02:35 AM
Old 03-13-2012
to generate a true .doc you need word...

Maybe shoud you explain what you wish to do, and what tools you have, so far we know you are on a sparc architecture using solaris (version??), what mailer system?
Because if your question summarized is: Can we send attachments in mails using unix, the answer is YES... but as you say, you have no GUI, so it will be command line... and here it gets tricky so the best is to write a shell script...

Last edited by vbe; 03-13-2012 at 02:10 PM.. Reason: typos
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to conver a unix output file to Microsoft word document

Hi, I'am are working on Unix platform. It requires for me to present the certain unix files in Microsoft word. Is conversion of a Unix ".out" file to Microsoft word feasible????? Kindly Let me know on this... Thanks in Advance, Divya (1 Reply)
Discussion started by: divyacl
1 Replies

2. Shell Programming and Scripting

How to download an attachment of a document

Hi, I have a metalink note. The note has got a zip file attached to it. What I need, is to write a shell script, to download the zip file alone, engrossed in the metalink document. I just have the web access to metalink and not the unix access to the metalink server to do a ftp, sftp, etc. ... (2 Replies)
Discussion started by: krishprasad
2 Replies

3. UNIX for Dummies Questions & Answers

transfer word document using ftp,sftp

Hello All, I want to transfer some world documents from solaris server to my local PC. using FTP i can not see the content of the files. Pls. tell me some other alternative (as sftp - i have tried with sftp ip_address which is not working) . (3 Replies)
Discussion started by: artikulkarni
3 Replies

4. Shell Programming and Scripting

Grep MS Word document

Hi, I have to read a MS word document to find some strings(expressions) .The reading should be done by paragraph.I have to show the entire paragraph If I find any string/expression in that. Please help me out. Thanks Regards Kris (5 Replies)
Discussion started by: mkris
5 Replies

5. Shell Programming and Scripting

copy contents of unix file to Word document

Hello, I have a unix file about 3000lines which i want to copy from and paste it into a Word document. If i cat the file and try to scroll through it then not everything is captured so i am getting and incomplete paste. Any help is really appreciated. jak (2 Replies)
Discussion started by: jakSun8
2 Replies

6. UNIX and Linux Applications

Word doc to pdf conversion?

I am trying to find a way to convert a Word doc saved in the XML format to a PDF file (that looks like the original Word doc). Yes, there are all kinds of ways to do this interactively. What I need is something that can be run as a background process so that when XML files are placed in a... (0 Replies)
Discussion started by: garzon
0 Replies

7. Shell Programming and Scripting

Readin document & creating path

Need a way to read a file in who every line is a path to a directory and make shortcut to that directory on a specific place. Example: line in the document /media/gogo/6651-FEAB/Desktop/ /media/gogo/6651-FEAB/Desktop/alex/ /media/gogo/6651-FEAB/linux/ ... (3 Replies)
Discussion started by: gogok_bg
3 Replies

8. UNIX for Beginners Questions & Answers

Print word doc using lpr command

Hi , We are trying to automate Printing the word document directly from the Server level to a Printer. We have printer registered and command I use is lp -d printername 1234.doc Even though the program completes fine, a print does not reach to the printer for word document. In... (4 Replies)
Discussion started by: PrashantTalele
4 Replies

9. Shell Programming and Scripting

Word change in a document

I have a bunch of documents where I need to change the word pi to pisignage. No big deal there: sed -i -e 's/pi/spisignage/g' /path/to/file However it is finding things like the word stopping and making the word stoppisignageng. Any suggestions to just find the work pi and change it? ... (0 Replies)
Discussion started by: wspgpete
0 Replies

10. Shell Programming and Scripting

Word change in a document

I have a bunch of documents where I need to change the word pi to pisignage. No big deal there: sed -i -e 's/pi/spisignage/g' /path/to/file However it is finding things like the word stopping and making the word stoppisignageng. Any suggestions to just find the word pi and change it? ... (3 Replies)
Discussion started by: wspgpete
3 Replies
cook_rsh(1)						      General Commands Manual						       cook_rsh(1)

NAME
cook - load balancing rsh SYNOPSIS
cook [ option... ] architecture command [ argument... ] cook -Help DESCRIPTION
The cook program is a wrapper around rsh(1) which does simple load balancing. It obtains its load information by running the rup(1) command, and selects the most suitable host hased on the architecture you specify, and the least load of all hosts of that architecture. The first command line argument is the architecture name which is used to get the list of possible hosts. From that list the rup(1) command is run to determine the host with the lowest load, which is in turn used as the first argument of the eventual rsh(1) command. COOKBOOKS
In order to make use of this program, somewhere in your cookbook, you need to add a line which reads parallel_rsh = "cook"; If the host chosen is the same as the caller (build host) then this program just exec the command skipping the rsh. So it costs nothing to use this in a one machine network! For each recipe you want distributed to a remote host, you need to add a host-binding attribute to. Typical usage is where you have a muti-architecture build. %1/%0%.o: %0%.c host-binding %1 { cc -o [target] -c [resolve %0%.c]; } In the recipe given here, each architecture has its object files placed into a separate architecture-specific directory tree. The architecture name (%1) is used in the host-binding, so that the compiles may be load-balanced to all machines of that architecture. If you need a command to run on a specific host (say, because that's where a specific application license resides), then simply use the host name in the host-binding attribute, rather than an architecture name. DEFINING THE CLASSES
The /host_lists.pl file is expected to exist, and to contain variable definitions used to determine if hosts are members of particular architectures. The /host_lists.pl file defines a perl HOL "hash of lists" The hash is %ArchNames and it maps names of architectures as user want to see them, to list references as the actual lists are stored. The names of each architecture could be any form you wish but the convention is to use the GNUish names such as "sparc-sun-solaris2.8". For each architecture, define one or more lists of machines according to what function each machine set may do. This can be as simple or as elaborate as required. The form of the list variable name can be any valid perl identifier but may as well be like the architecture name with dash changed to underbar and dot removed, and the type added. For example one might define solaris hosts as: @sparc_sun_solaris28_hosts = ( "mickey", "minny", "scrooge" ); And linux hosts as: @i386_linux22_hosts = ( "goofy", "scrooge" ); If there is a need to define different sets of machines for different types of jobs then add a suffix to the names in the host-binding directive on each of the recipes, and lists here with the same suffix. The hash to map argument names to lists is defined like: %ArchNames = ( "sparc-solaris2.8", => @sparc_solaris28_hosts, "i586-unknown-linux22", => @i386_linux22_hosts, ); Of course if users have differing opinions as to what the architecture names should look like, you can define "alias" mappings as well. "sun4-SunOS-5.8", => @sparc_solaris28_hosts, Or maybe the level is of no importance, then define "sparc-solaris", => @sparc_solaris28_hosts, "sparc-solaris2.7", => @sparc_solaris28_hosts, Also, this list isn't allowed to be empty. And finally, curtesy of Perl, the last line of the file must read 1; for obscure and magical reasons. SYSLOG LOGGING
Typical commands seen during a build would look like sh -c 'cd /aegis/dd/gumby2.2.C079 && sh -ce /aegis/dd/gumby2.2.C079/.6.1; echo $? > /aegis/dd/gumby2.2.C079/.6.2' So we can extract the project/ change from the command quite easily and logging it via syslog would be a trivial addition. OPTIONS
This command is not usually given any options. -h Help - show usage info -vP Verbose - report choice -Tn Trace value for testing FILES
/exclude.hosts This file is used to list those host which must not be used by this script. Simply list excuded hosts, one hostname per line. If the file is absent, all hosts reported by rup(1) may be used. /host_lists.pl This file defines the classes of hosts for each architecture. AUTHOR
Jerry Pendergraft <jerry@endocardial.com> Reference Manual Cook cook_rsh(1)
All times are GMT -4. The time now is 01:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy