Sponsored Content
Full Discussion: AWK Syntax errors :/
Top Forums Shell Programming and Scripting AWK Syntax errors :/ Post 74240 by vgersh99 on Wednesday 8th of June 2005 01:53:16 PM
Old 06-08-2005
make sure you ftp to Sun in 'ascii' mode.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk errors

Hello, Can you please let me know how to find all lines that don't begin with pattern1, pattern2, pattern3 and pattern4? Here is my awk script that gives an error. awk 'BEGIN { NAME="$FILE" GSNO=0 } /^ISA/ { FIRST=$0; LAST="IEA*1*" +... (4 Replies)
Discussion started by: billy5
4 Replies

2. Shell Programming and Scripting

perl version for syntax errors

All, Does it matter what perl verios your running when you get syntax errors? on version 5.6.1 the code works fine, but on 5.8.0 the code gets errors? #!/usr/bin/perl #use strict; #use warnings; my $mess = 'messages'; my $mess1 = 'messages.1'; my $mess2 = 'messages.2'; my... (13 Replies)
Discussion started by: bigben1220
13 Replies

3. Shell Programming and Scripting

PERL Syntax Errors

Hi, I am a newbie to PERL and working on a script. When running it I get a lot of compilation errors. The actual command in the program (which is within a case structure) is given below # This gives the actual count of inquires from a log file (It works fine when I type this on the... (2 Replies)
Discussion started by: nurani
2 Replies

4. UNIX for Dummies Questions & Answers

I dont really think that the math header has syntax errors

Hi, Mini:Evaluator develop$ make bison -d grammar.y grammar.y: conflicts: 24 shift/reduce flex rules.l cc -0 -o Evaluator grammar.tab.c lex.yy.c -ly -ll -lm In file included from grammar.y:3: /usr/include/architecture/i386/math.h:310: error: syntax error before numeric constant... (1 Reply)
Discussion started by: tcerka
1 Replies

5. Shell Programming and Scripting

line count with if /else - syntax errors

this is the script: ps -ef|grep "x_jobstat 10 v001" > jobstatv001.txt ps -ef |grep "x_jobserver 10 v001" >> jobstatv001.txt #Sample text - each line preceded by 4 spaces # root 133064 102986 0 08:49:28 pts/6 0:00 grep x_jobstat 10 v001 # root 137550 1 0 Nov 08 - 0:28... (6 Replies)
Discussion started by: kwalkner
6 Replies

6. Emergency UNIX and Linux Support

Seek help on shell script syntax errors

I want to delete archivelog files that has been archived and applied from primary database to standby database. This piece of script is working in Linux server. However, I copy it to Unix server with tiny modification. It won't work and generate the error message. I have checked code carefullt... (8 Replies)
Discussion started by: duke0001
8 Replies

7. Programming

Errors in Perl when using awk command

Hi Guys, Hope everyone is fine :) I have this code below: #!/usr/bin/perl $num_of_files=`ls | grep -v remover | wc -l`; $remover=`ls -lrt | grep -v total | grep -v remover | head -1 | awk '{print $8}' | rm \`xargs\``; if ($num_of_files>3) { system ($remover); } When I... (3 Replies)
Discussion started by: rymnd_12345
3 Replies

8. Shell Programming and Scripting

Converting from Linux bash (GNU) to Solaris script syntax errors

Original script written on CentOS 6.3 with GNU bash 4.1.2 Destination system is Solaris 9 with GNU bash 2.05 (not changeable by me) I have a script written on the linux side but now we need to provide a version to another site that "doesn't like linux". I've been going through changing the ] or... (13 Replies)
Discussion started by: oly_r
13 Replies

9. Homework & Coursework Questions

Help with shell scrip syntax errors

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: This script will analyse the channels.txt e registrations.txt and it will allow to mage the channels and the... (9 Replies)
Discussion started by: Demas
9 Replies

10. Shell Programming and Scripting

Finding latest file in dir but getting syntax errors

I believe there are couple of syntax issues in my script, couldn't find them :( can someone help me with fixing it to make it work. cd /abcde/ #get the latest filename excluding subdirs filename=`ls -ltr | grep ^- | tail -1 | awk '{print $8}'` #get system date and file timestamp and... (3 Replies)
Discussion started by: simpltyansh
3 Replies
hasciicam(1)						      General Commands Manual						      hasciicam(1)

NAME
hasciicam - (h)ascii for the masses! SYNOPSIS
hasciicam [ -hvq ] [ -m mode ] [ -d device ] [ -i input ] [ -o output ] [ -f :user%pass@host:/dir ] [ rendering-options ] DESCRIPTION
hasciicam makes it possible to have live asciivideo on the web. It takes video from a capture device (like tv cards or quickcams) and ren- ders it into ascii, formatting the output into an html page with a refresh tag or in a live ascii window or in a simple text file as well, giving the possiblity to publish on the web a live asciivideo feed browsable without any need for browser's plugins. hasciicam grabs frames using Video4Linux api, renders them into ascii using AA-lib engine and is capable of armoring them with auto- refreshing HTML code. It's being used also jpeglib for optionally refresh a small jpeg image, so that it can work also as a simple webcam (or showing both, jpeg and asciivideo). OPTIONS
-h --help Display a help text and quit. -v --version Display version and quit. -q --quiet Be quiet and don't show hardware detection. -m --mode Selects the mode in wich hasciicam will run: live will use the console (or eventually open one under X display) to show full speed ascii video. html will write html formatted ascii video every refresh seconds into file aafile. text will write plain text ascii video every refresh seconds into file aafile. Default mode is live. Mode selection is XOR'ed. -d --device Use specified capture device. Default is /dev/video. -i --input Selects the device's input channel to be used for grabbing frames. Default is 1. -o --aafile Defines the file where to save rendered ascii, overwrited every refresh seconds. Default is hasciicam.html when in html mode, hasci- icam.txt when in text mode (useless when in live mode). -f --ftp Ftp pushes the selected output file to an ftp account specified within an expression like :user%pass@dyne.org:/home/user/www. If the password is not specified (omit %pass) hasciicam asks for it on stdin (hidden while typing). If the directory is not specified it is assumed to be the first ftp directory where user logs in. Remote file is refreshed depending on refresh rate and connection band- width, a scolopendro temporary file is created to keep clients on the other side refreshing smooth. -D --daemon Forks to background and runs in daemon mode. RENDERING-OPTIONS -S --font-size Selects a font size from 1 to 4 used in html rendering. default is 1 (only useful when in html mode). -a --font-face Selects a font face to be used in html rendering, it should be fixed size for better results. default is courier (only useful when in html mode). -r --refresh Specifies the refresh interval in seconds between each grabbed frame. Default is 2 (useless when in live mode). -b --aabright Specifies brightness level for the aa_render, from 0 to 100. Default is 60. -c --aacontrast Specifies contrast level for the aa_render, from 0 to 100. Default is 4. -g --aagamma Specifies gamma correction level for the aa_render, from 0 to 100. Default is 3. -I --invert Invert and render the resulting negative ascii. -B --background Specifies the background color to be used in the form of a hex RGB triplet (without the leading #). Default is 000000 for black (only useful when in html mode). -F --foreground Specifies the foreground color to be used in the form of a hex RGB triplet (without the leading #). Default is 00FF00 for green (only useful when in html mode). EXAMPLES
hasciicam -m html -o watchme.html puts your html formatted ascii into watchme.html - then just open it with your favourite browser. hasciicam -m text -o ~/.plan puts your ascii into your local .plan (fingercam) hasciicam -m html -S 2 -o index.html -f :jaromil%sasuchen@dyne.org:korova generates an hascii video with font size +1 and uploads the frames in ftp passive mode on the dyne.org server, with user jaromil password sasuchen, inside the korova directory NOTES
When using a usb webcam, a supported size needs to be specified. The minimum or maximum detected size should work, also a size of 160x120 mostly gives good results, with unsupported sizes you will get unexpected results. BUGS
Report bugs to hasciicam@dyne.org. Please include a complete, self-contained example that will allow the bug to be reproduced, information about which version of hasciicam you are using, which operative system and the complete device detection output. AUTHOR
jaromil [aka Denis Roio] <jaromil@dyne.org> COPYING
Copyright (c) 2001-2006 Denis Roio <jaromil@dyne.org> Permission is granted to copy, distribute and/or modify this manual under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation. Permission is granted to make and distribute verbatim copies of this manual page provided the above copyright notice and this permission notice are preserved on all copies. AVAILABILITY
The most recent version of hasciicam sourcecode and up to date documentation is always available for download from http://ascii.dyne.org. SEE ALSO
info aalib hasciicam July 16, 2001 hasciicam(1)
All times are GMT -4. The time now is 04:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy