This might not the best method but I used the Log show command to access the unified logs.
And then directed this to a file. So I use this to monitor the camera status.
Hi All,
I have an expression as follows:-
a=`expr ${i} + ${j}` >> $log_file 2>&1
Here, if any of the values i or j or both happens to be empty then the "expr" returns error as
"expr: 0402-050 Syntax error." My problem is I am not able to re-direct this error to the log file. Its is getting... (4 Replies)
Hi,
I have a script to compare 2 files.
file1=$1
file2=$2
num_of_records_file1=`awk ' END { print NR } ' $file1`
num_of_records_file2=`awk ' END { print NR } ' $file2`
i=1
while
do
sed -n "$i"p $file1 > file1_temp
sed -n "$i"p $file2 > file2_temp
diff file1_temp... (5 Replies)
Hi there,
We have 2 apps on our customers machines that can both open files with the same file extension. Is there any way via shell commands to set which application should be the default?
Essentially, I'm hoping to replicate Get Info > Open With > Change All using a shell script, but I just... (0 Replies)
Hello, currently we are executing a .sh from terminal.
The current .sh looks like this:
#!/usr/bin/env bash
/Users/user/my.app/Contents/MacOS/my &
--
Now, we also need to run a third line in the .sh - It's a command line application that I need to run when I execute the above .sh... (0 Replies)
#!/bin/ksh -x
cd /tmp/tj
ftp -n servername.com << DONE
user username password
as
put test.log
quit
close
DONE
echo "testing..."
sh -x scriptname, and it shows all, but username, as, put, quit, close, DONE.
how can i see those ? (1 Reply)
Hi guys,
been scratching round the forums and my mountain of resources.
Maybe I havn't read deep enough
My question is not how sed edits a stream and outputs it to a file, rather something like this below:
I have a .txt with some text in it :rolleyes:
abc:123:xyz
123:abc:987... (7 Replies)
What is the best practice to allow a 3rd party health monitoring app to read the messages file. Since messages is a system file and is owned by root the app cannot read the file. I don't want to run the app as root so how should I allow the app to read the file. The read function is actually built... (2 Replies)
Discussion started by: slwiley
2 Replies
LEARN ABOUT DEBIAN
avg_showcamera
AVG_SHOWCAMERA(1) User Commands AVG_SHOWCAMERA(1)NAME
avg_showcamera - camera discovery and display tool
SYNOPSIS
avg_showcamera -l
avg_showcamera -r
avg_showcamera -t DRIVER [OPTION]...
DESCRIPTION
Query and list attached cameras, reset firewire bus, show video stream.
OPTIONS -h, --help
Show a brief description of the options.
-l, --dump
Dump a list of available cameras to the console.
-r, --resetbus
Reset the firewire bus and free allocated bandwidth.
-t, --driver DRIVER
One of the camera subsystems supported by libavg (supported: firewire, video4linux, directshow).
-d, --device DEVICE
Camera device identifier (depending on the driver, a GUID or device path is expected).
-u, --unit UNIT
Unit number. Used for cameras or other capture devices which deliver several images (e.g. stereo cameras or TV capture cards).
-w, --width WIDTH
Camera image width.
-e, --height HEIGHT
Camera image height.
-p, --pixelformat PIXELFORMAT
Camera pixel format (one of: I8, I16, YUV411, YUV422, YUYV422, RGB, BGR, BAYER8).
-f, --framerate FRAMERATE
Frames per second.
-8, --fw800
Set firewire bus speed to s800 (if supported).
-s, --noinfo
Don't show any info overlayed on the screen.
AUTHOR
Ulrich von Zadow <coder@c-base.org>
libavg 1.7.0 November 2011 AVG_SHOWCAMERA(1)