Sponsored Content
Top Forums Shell Programming and Scripting how to capture my app starting up. Post 302155626 by gus2000 on Friday 4th of January 2008 06:17:53 PM
Old 01-04-2008
First of all, I despise the "tee $LOGFILE" nonsense. Batch scripts should be logged in their entirety, which I discussed here:

https://www.unix.com/shell-programmin...#post302148874

Nevertheless, I don't see a mail command in this script? I guess stdout from the cron job is mailed to the owner. You should probably add an explicit "echo OK | mail admin" type of command at then end of the script, but send all the output to a logfile (as I demonstrate in the link above).
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

capture the process id when starting a background process

Hello all, How do I start a background process and save the process id to a file on my system. For example %wait 5 & will execute and print the process id. I can't figure out how to get it to a file. I've tried: > filename 0>filename 1>filename. Any assistance is most appreciated. Thanks, Jim... (10 Replies)
Discussion started by: jleavitt
10 Replies

2. Programming

Deadlocked App

Hello All - We have a legacy C program running non stop on one of our servers, with several instances often running at once. Fairly regularly, one of the instances while stop outputting to the log file and will just deadlock/hang. They must be then 'kill'ed by myself. When I gdb into one of... (3 Replies)
Discussion started by: markanderson
3 Replies

3. Solaris

luminis app

The guys at SunGard want to charge a lot of $$$$ for installing Luminis and we are trying to see if this can be done without them. Their installation guide provided page #53 ( http://www.luminis.nocccd.edu/documents/Luminis%20IV/lp40000in.pdf ) doesn't really tell you much. All they say is that... (4 Replies)
Discussion started by: ceci1
4 Replies

4. HP-UX

help auto starting app on boot

Hi I need a bit of help figuring out how to auto start an application on boot on an HPUX. I am a fairly exp AIX guy now working an HP shop. I use to change a /etc/rc... file. Any advise would be a great help TIA. –K If it is a help the program is a DB and runs as root /usr/ud{##}/startud... (3 Replies)
Discussion started by: KmJohnson
3 Replies

5. Red Hat

userid with nothing to do on the os/app

Hi All, I got this userid apache with the same userid and groupid and /sbin/nologin and the /www/a home folder is empty. Can I just delete this userid? How can I investigate if userid have something to do with the application? Thanks for any comment you may add. (1 Reply)
Discussion started by: itik
1 Replies

6. Shell Programming and Scripting

error situation handling when starting app from a script

Hi, in my bash script I start 3rd party app that runs quickly normally and returns some data that I use later for processing. However if there are problems the app doesn't return anything and just hangs... then my script also hangs of course, awaiting for the app to comeback. Was wondering how to... (3 Replies)
Discussion started by: TomSu
3 Replies

7. UNIX for Dummies Questions & Answers

How to grep a line not starting with # from a file (there are two lines starting with # and normal)?

e.g. File name: File.txt cat File.txt Result: #INBOUND_QUEUE=FAQ1 INBOUND_QUEUE=FAQ2 I want to get the value for one which is not commented out. Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies

8. Programming

Wuhan Coronavirus Status App for China - Rapid Prototype using MQTT and the IoT OnOff IOS App

With a little bit of work, was able to build a nice "Wuhan Coronavirus Status" app using MQTT and the IoT-OnOff app. More on this technique here: ESP32 (ESP-WROOM-32) as an MQTT Client Subscribed to Linux Server Load Average Messages The result turned out nice, I think. I like the look and... (10 Replies)
Discussion started by: Neo
10 Replies
UVCCAPTURE(1)						      General Commands Manual						     UVCCAPTURE(1)

NAME
uvccapture - USB UVC Video Class snapshot software SYNOPSIS
uvccapture [options] DESCRIPTION
This manual page documents briefly the uvccapture command. The purpose of uvccapture is to capture an image from a USB webcam at a specified interval, and save it to a JPEG file, no other formats are supported, imagemagick can handle anything else you might need. OPTIONS
A summary of options is included below. -h Show summary of options. -v Verbose output. -o<filename> Output filename (default is snap.jpg) -d<device> V4L2 Device (default is /dev/video0) -x<width> Image Width (must be supported by device) (>960 activates YUYV capture) -y<height> Image Height (must be supported by device) (>720 activates YUYV capture) -c<command> Command to run after each image capture (executed as <command> <output_filename>) -t<integer> Take continuous shots with <integer> seconds between them (0 for single shot) -q<percentage> JPEG Quality Compression Level (activates YUYV capture) -r Use read instead of mmap for image capture -w Wait for capture command to finish before starting next capture -m Toggles capture mode to YUYV capture -B<integer> Brightness -C<integer> Contrast -S<integer> Saturation SEE ALSO
http://linux-uvc.berlios.de/ AUTHOR
uvccapture was written by Gabriel A. Devenyi <ace@staticwave.ca>. This software is based of the package luvcview by Laurent Pinchart and Michel Xhaard. This manual page was written by Krzysztof Burghardt <krzysztof@burghardt.pl>, for the Debian project (but may be used by others). 28th March, 2008 UVCCAPTURE(1)
All times are GMT -4. The time now is 11:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy