Sponsored Content
Full Discussion: Expect debug output
Top Forums Shell Programming and Scripting Expect debug output Post 302487226 by cjcox on Tuesday 11th of January 2011 06:15:12 PM
Old 01-11-2011
We run ooffice headless. We created an init script that uses sudo (with NOPASSWD) to become the user to run it as.
Code:
/usr/bin/sudo -b -H -i -u someuser $soffice_BIN -headless -accept='socket,port=8100;urp;' &

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Easiest way to send output to a debug file?

I have this in my script: DEBUG_DIR=/log/rotate_output DEBUGLOG=${DEBUG_DIR}/rotate.${TIMESTAMP} SERVER_FILE_LIST="\ wasint0206 /logs/squid_backup wasint0201 /logs/squid_backup" /usr/bin/echo "${SERVER_FILE_LIST}" | while read SERVER DIRECTORY do cd /log/squid_logs/${SERVER}... (2 Replies)
Discussion started by: LordJezo
2 Replies

2. Shell Programming and Scripting

Get the output from EXPECT ?

I'm using expect script, but don't know how to assign an output to a string variable. Any help ? Thank you for reading! PS: In fact i want to get the out put of expect when run grub-md5-crypt to generate MD5 password for GRUB boot loader. My code:#!/bin/sh #\ exec expect -f "$0" ${1+"$@"}... (4 Replies)
Discussion started by: fongthai
4 Replies

3. Shell Programming and Scripting

want to use output of c programme in expect

hi i am having a c code which gives the output of my password in text format i.e when i run my c code which which gives the password asfollows====>>>>>> $./passwdprogram ======>>>>>>abc@123(this is the output) now i have an expect script to remotely ssh which uses the password set in ... (0 Replies)
Discussion started by: xander
0 Replies

4. Shell Programming and Scripting

Expect - Interact output hangs when large output

Hello, I have a simple expect script I use to ssh to a workstation. I then pass control over to the user with interact. This script works fine on my HP and Mac, but on my Linux Desktop, I get a problem where the terminal hangs when ever I execute a command in the interact session that requires a... (0 Replies)
Discussion started by: natedog
0 Replies

5. Shell Programming and Scripting

how to debug an expect script running on a tomcat server

Hello everyone, I have a small expect script as follows; #!/usr/bin/expect -f set force_conservative 0 ;# set to 1 to force conservative mode even if ;# script wasn't run conservatively originally if {$force_conservative} { set send_slow {1 .1} proc send {ignore arg}... (1 Reply)
Discussion started by: randeel
1 Replies

6. Shell Programming and Scripting

Want ro capture the debug in output file

I want to capture the debug for the below command in output file . i tried like this but its not working: sh -xv <scriptname> >> output.log i want the output in a log file. Anyone plz help in this (2 Replies)
Discussion started by: chakkaravarthy
2 Replies

7. Shell Programming and Scripting

Expect doesn't output the logs

(qemu) migrate -d tcp:192.168.122.1:4444 (qemu) info migrate capabilities: xbzrle: off Migration status: completed total time: 4425 milliseconds downtime: 3 milliseconds transferred ram: 130338 kbytes remaining ram: 0 kbytes total ram: 1057152 kbytes duplicate: 232613 pages normal:... (0 Replies)
Discussion started by: yanglei_fage
0 Replies

8. Shell Programming and Scripting

Help capturing output of expect script

match_max 500000 set timeout 30 set outcome1 {} set outcome2 {} set inputfile C:\\Users\\Administrator\\Desktop\\inputfile.txt send -i $con "\r"; expect -i $con "Desktop>" { exp_send "type $inputfile \r" } set timeout 30 expect { "Desktop>" { set outcome $expect_out(0,string);}... (3 Replies)
Discussion started by: cityprince143
3 Replies

9. Shell Programming and Scripting

How do I use grep output in an expect script?

Hi, I am using expect to ssh to a remote host and run a program on the remote machine which has a variable runtime. I need to wait until it finishes so I can grab the output file of this program. I am trying to use the output of grep to know when the process finishes. I am trying to capture... (0 Replies)
Discussion started by: vagabond1964
0 Replies

10. Shell Programming and Scripting

Expect Script - Not Seeing Output from While Loop

I know something simple is missing here, "log_user 1" is set . . . after this utility opens ${InFile} (handle? for IntInFile) it needs to look for something to appear in the file ${IntInFile} and then send it to the spawned process. Then I am locking the file ${IntInFile} and clearing it out -... (0 Replies)
Discussion started by: JuanMatteo
0 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 01:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy