9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am using korn shell.
until ]
do
echo "\$# = " $#
echo "$1"
shift
done
To the above script, I passed 2 parameters and the program control doesn't enter inside "until" loop. If I change it to until ] then it does work.
Why numeric comparison is not working with -ne and works... (3 Replies)
Discussion started by: ab_2010
3 Replies
2. UNIX for Dummies Questions & Answers
find . -name "05_scripts" -type d -exec mv -f {}/'*.aep\ Logs' {}/.LogFiles \;
Returns this failure:
mv: rename ./019_0120_WS_WH_gate_insideTEST/05_scripts/*.aep\ Logs to ./019_0120_WS_WH_gate_insideTEST/05_scripts/.LogFiles/*.aep\ Logs: No such file or directory
I don't know why it's trying... (4 Replies)
Discussion started by: scribling
4 Replies
3. Shell Programming and Scripting
If there exists a field in stdin, print it, otherwise, print hello.....
These print nothing:
cat /dev/null | awk '{if ( length > 0 ) print $1; else print "hello"}'
cat /dev/null | awk '{if ( $1 ) print $1; else print "hello"}'But the scripts work if I run them directly in a terminal:
... (8 Replies)
Discussion started by: ksheller
8 Replies
4. Shell Programming and Scripting
Hi. I've been playing around a bit. This isn't for any practical purpose-- it's really just a theoretical exercise. I wrote this little thing:
foreach num ( 6 5 4 )
awk -v "number=$num" 'BEGIN{for(x=0;x<$number;x++) printf "-"; printf "\n"}'
end
I would expect the following output:
... (3 Replies)
Discussion started by: treesloth
3 Replies
5. UNIX for Dummies Questions & Answers
why lp -o <option> doesn't work on my SCO Unix. (4 Replies)
Discussion started by: wendyz
4 Replies
6. UNIX for Dummies Questions & Answers
Hi!
I have 2 servers. The firts has vsftpd server with this configuration:
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all... (2 Replies)
Discussion started by: Torquemada
2 Replies
7. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
8. UNIX for Dummies Questions & Answers
it seams that my ctrl+c and my ctrl+d don't work. if I type a bunch of jiberish on a line and ctrl+c I expect the command to be cancelled and to be given a fresh prompt, but instead it just putts ^C at the end of the line.
Also, ctrl+d should close the session, but instead mine just puts ^D at... (3 Replies)
Discussion started by: yankee428
3 Replies
9. Shell Programming and Scripting
cat .servers | while read LINE; do
ssh jason@$LINE $1
done
exit 1
./command.ksh "ls -l ~jason"
Why does this ONLY iterate on the first server in the list? It's not doing the command on all the servers in the list, what am I missing?
Thanks!
JP (2 Replies)
Discussion started by: jpeery
2 Replies
DV4LSTART(1) General Commands Manual DV4LSTART(1)
NAME
dv4lstart - redirect V4L API to access a camcorder from a V4L program
SYNOPSIS
dvlstart [options] command [argument ...]
DESCRIPTION
dv4lstart enables command to access a dv1394 (Firewire) camcorder by using the video4linux (V4L) API. dv4lstart uses the LD_PRELOAD facil-
ity to intercept calls to the V4L API and make the camcorder's videostream available.
Check that LD_PRELOAD works in your environment by starting
$ dv4lstart ls -l /dev/video0
The resulting output should look like
crw-rw---- 0 root video 81, 0 Jan 1 1970 /dev/video0
Check your 1394 driver config by starting
$ gst-launch-0.10 dv1394src ! dvdemux ! dvdec ! xvimagesink
from your shell. After turning on your camera, a video window should appear. If this works, dv4lstart should work as well.
Inside command, use /dev/video0. Any existing, real V4L device named /dev/video0 can not be accessed from an application started with
dv4lstart (applications started normally can access the real /dev/video0)
OPTIONS
-c, --color-correction
Set this option if red objects look blue.
-n, --new-dev
Tell dv4lstart to simulate a new video device rather than overriding /dev/video0. Set this option if your application needs to
access other video devices.
-r, --rgb-only
Set this option to prevent V4L applications from choosing YUV palettes. Try this option if you get low frame rates.
-v, --verbose level
Set the amount of debugging messages. A level of 0 means no output at all, 1 is the default, 3 enables all messages.
-h, --help
displays a help message
EXAMPLES
The command
$ dv4lstart v4l-info
outputs some information about the simulated V4L device.
$ dv4lstart -c gqcam -v /dev/video0
starts the gqcam webcam viewer, swapping red and blue colors.
LIMITATIONS
Programs using exotic ways to access the V4L API will not work.
Some environments don't allow the use of LD_PRELOAD for security reasons. dv4lstart will not work there.
If dv4lstart does not work, try dv4l instead.
SEE ALSO
dv4l(1)
DV4LSTART(1)