Sponsored Content
Top Forums Shell Programming and Scripting Open and work on a .doc file with bash script Post 302364530 by fpmurphy on Friday 23rd of October 2009 09:24:26 AM
Old 10-23-2009
It is possible to do so using OpenOffice and its scripting framework.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

cant get a counter to work in bash scipt, this is calling expect script

I have looked high and low, tryed lots of diffrent things but cant get a simple counter to work right. what i need is to increase a count ever time it finishes the test, pass or fail. example TEST PASS 1, NEXT TEST PASS 2, I curently have set foo o while {$foo <=5} { incr foo puts... (1 Reply)
Discussion started by: melvin
1 Replies

2. Shell Programming and Scripting

pipe to grep doesn't work in bash script

Hi, I'm trying to write a script that checks gvfs to see if a mount exists so I can run it from network-manager's status hooks. I thought I'd pipe the output of gvfs-mount -l to grep for the particular mounts I care about. When I do this in a bash script: cmnd="gvfs-mount -l | grep -i... (4 Replies)
Discussion started by: kcstrom
4 Replies

3. Programming

Creating a bash script that create/open database

Hi. I have two text files(tables) which include some information and I want to make some query codes using them. First of all, I want to create bash script that read this two tables, create/open database and insert data from files into database. #!/bin/bash while read line; do ... (1 Reply)
Discussion started by: rlaxodus
1 Replies

4. Shell Programming and Scripting

Bash script reg-exp , replace , open and write

Hi All I am a new in scripting language and I would like help for you guys I would like to create a file named constant.h and search into all files *.m in specific directory for a reg-exp @"LBL_]+" exp: @"LBL_75847" , and write those matchs to constant.h if there are not written (no... (15 Replies)
Discussion started by: molwiko
15 Replies

5. Shell Programming and Scripting

Nested double quotes won't work in my bash script?

In a bash script I have: LSCMD="find /project/media/ -mindepth 2 -maxdepth 2 -name \"files*pkg\"" ALL_PACKAGES=$( $LSCMD | sort 2>/dev/null) But I get nothing returned. It's just all blank. If I run the find command in a terminal, I get dozens of hits. I figure it's the way how I'm... (3 Replies)
Discussion started by: superbbrr
3 Replies

6. Shell Programming and Scripting

Help with bash script to open arbitrary # of independent xterms

I run multiple processes that require I pop open multiple xterms, how can I do this in a script and have each xterm colored differently and labled for the servername they represent, for example if I do ssh username@serverip I would need the xterm to be opened with that servername at the top and... (3 Replies)
Discussion started by: smth333
3 Replies

7. Shell Programming and Scripting

Rsync in bash script doesn't work even after placing pub key in target server

Hello Friends, My bash script is like this #!/bin/bash # request Bourne shell as shell for job #$ -S /bin/bash # assume current working directory as paths #$ -cwd #$ -N rsync-copy # # print date and time date rsync -rltD --progress "ssh -i /home/myname/.ssh/id_rsa"... (4 Replies)
Discussion started by: jacobs.smith
4 Replies

8. UNIX for Advanced & Expert Users

[BASH] Errormessages and Traps with a 'here-doc'

Happy holidays everyone :) I'm trying to increase usabilty for my scripted project-, for that i wanted to apply an error message poping up upon every and any error (other than proper exit) indicating the enduser a uniform, and hopefully readable error messsage. To achieve this, i wrote a... (4 Replies)
Discussion started by: sea
4 Replies

9. Shell Programming and Scripting

Encyrpt does not work in bash script

Hi All, I am looking here from any one. I am preparing script for create user and set password to remote servers. I have made password less. and able to add user and also able to set entry in /etc/shadow. But it does not make complete entry in shadow file. it lefts initial... (6 Replies)
Discussion started by: yash_message
6 Replies

10. UNIX for Beginners Questions & Answers

Bash script does not work as expected

Repeat this text in a file named notes.txt and run the script Before bash is a good language a blank line appears Also, the following notes are displayed incorrectly What is bad? ================================== Title : Note 1 ================================== Category: Computer Date... (3 Replies)
Discussion started by: cesar60
3 Replies
ooffice(1)							   User Commands							ooffice(1)

Name
       ooffice - OpenOffice.org office suite

SYNOPSIS
ooffice [-accept=accept-string] [-base] [-calc] [-display display] [-draw] [-global] [-headless] [-help|-h|-?] [-impress] [-invisible] [-math] [-minimized] [-n filename] [-nodefault] [-nolockcheck] [-nologo] [-norestore] [-o filename] [-p filename...] [-pt printername filename...] [-show presentation] [-unaccept=accept-string] [-terminate_after_init] [-view filename] [-web] [-writer] [filename...] oobase oocalc oodraw oofromtemplate ooimpress oomath ooweb oowriter DESCRIPTION
OpenOffice.org is a fully featured office suite for the daily use with all features you would normally expect in a office suite. This script runs OpenOffice with the arguments <args> given on the command line. There are also some wrapper scripts in /usr/bin which run the wanted OpenOffice.org module. OPTIONS
filename... Files to operate on. Opening them is the default behavior, which can be influenced by command line arguments. -p will print the files instead. -accept=accept-string Notifies the OpenOffice.org software that upon the creation of "UNO Acceptor Threads", a "UNO Accept String" will be used. -base Starts with the database wizard. -calc Starts with an empty Calc document. -display display This option specifies the X server to contact; see X(7) -draw Starts with an empty Draw document. -global Starts with an empty Global document. -headless Starts in "headless mode", which allows using the application without user interface. This special mode can be used when the application is controlled by external clients via the API. -help|-h|-? Lists the available OOo-native command line parameters to the console. -impress Starts with an empty Impress document. -invisible Starts in invisible mode. Neither the start-up logo nor the initial program window will be visible. However, the OpenOffice.org software can be controlled and documents and dialogs opened via the API. When the OpenOffice.org software has been started with this parameter, it can only be ended using the taskmanager (Windows) or the kill command (UNIX based systems). It cannot be used in conjunction with -quickstart. -math Starts with an empty Math document. -minimized Keep the splash screen minimized. -n filename Creates a new document using filename as a template. -nodefault Starts the application without any window opened for the first time. A window appears if you start the office next time. It is used together with the option -nologo by quickstarters. Note that the option -quickstart has not been longer supported since OpenOffice.org 2.0.0. -nolockcheck Disables the check for remote instances using the installation. -nologo Disables the splash screen at program start. -norestore Disables restart and file recovery after a system crash. It is possible OOo will try to restore a file it keeps crashing on, if that happens -norestore is the only way to start OOo. -o filename Opens filename for editing, even if it is a template. -p filename... Prints the given files to the default printer and ends. The splash screen does not appear. If the file name contains spaces, then it must be enclosed in quotation marks. -pt printername filename... Prints the given files to the printer printername and ends. The splash screen does not appear. If the file name contains spaces, then it must be enclosed in quotation marks. -show presentation Starts with the given Impress file and starts the presentation. Enters edit mode after the presentation. -unaccept=accept-string Closes an acceptor that was created with -accept option. Use -unaccept=all to close all open acceptors. -terminate_after_init The office terminates after it registers some UNO services. The office doesn't show the intro bitmap during startup. -view filename Creates a temporary copy of the given file and opens it read-only. -web Starts with an empty HTML document. -writer Starts with an empty Writer document. TROUBLESHOOTING PROBLEMS
See http://en.opensuse.org/Bugs:OOo for more details about how to report bugs in OpenOffice.org. SEE ALSO
http://go-oo.org/ AUTHOR
This manual page was created by Rene Engelhard <rene@debian.org> for the Debian GNU/Linux Distribution, because the original package does not have one. It was updated for Novell by Petr Mladek <petr.mladek@novell.com>. OpenOffice.org 2008-11-19 ooffice(1)
All times are GMT -4. The time now is 10:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy