Sponsored Content
Full Discussion: shell test command
Top Forums Shell Programming and Scripting shell test command Post 302269930 by elledante on Friday 19th of December 2008 06:39:20 AM
Old 12-19-2008
have you tried running the program using the ./filename it usually comes up with errors like mine has at the moment haha
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

the TEST command

Hi everyone, I am new to UNIX and scripting, and I have some problems with the test command. when i try to execute the command: test 20070327.gz > 20070320.gz i try to make a charachter string comparison between the two strings or the two files, to make sure that 20070327.gz is greater than... (2 Replies)
Discussion started by: marwan
2 Replies

2. AIX

Test command

Hello, I am trying to add some tests to existing code. The code already contains some test commands. An example is as follows... ] then Does anyone know the purpose of the double equals? I would have used a single equals sign... (2 Replies)
Discussion started by: JWilliams
2 Replies

3. Shell Programming and Scripting

TEST command

I have been looking into searching various files to display output. The search criteria will be a month and year to output various numbers in the files. is there any way to do this with the TEST function or would it have to be another way? (4 Replies)
Discussion started by: amatuer_lee_3
4 Replies

4. Shell Programming and Scripting

Help with test command

Plese help me on the below query. for j in *.20071231* *.ctl *.dat do ( if then cp "$base/*.*" "$base1" fi ) done My requirement is for all files that has extension *.20071231* *.ctl *.dat should be copied to another folder. But those with caaa.20071231.log... (7 Replies)
Discussion started by: sussane
7 Replies

5. Programming

Test command name

I'm very new to C and could use a little help. I'm testing to make sure the command is running as it's proper name, if not then fail. if (strcmp(argv, "xinit") != 0) { fprintf(stdout, "name = %s length = %d\n",argv,l); usage(0); } This works if the command is... (3 Replies)
Discussion started by: nck
3 Replies

6. UNIX for Dummies Questions & Answers

How do i tell my bash shell script to test the output of a command against something

How do i tell my bash shell script to test the output of the command i'm using?? I want this script to look for lines not equal to 1 then let me know.. $ cat blah ; echo ---- ; cat blah.sh 1 fe 1 fi 1 fo 0 fum 1 blahda 1 blah 0 blahh 1 bla 1 bl 1 blahhh ---- #!/bin/bash while... (1 Reply)
Discussion started by: phpfreak
1 Replies

7. Shell Programming and Scripting

Test on string containing spacewhile test 1 -eq 1 do read a $a if test $a = quitC then break fi d

This is the code: while test 1 -eq 1 do read a $a if test $a = stop then break fi done I read a command on every loop an execute it. I check if the string equals the word stop to end the loop,but it say that I gave too many arguments to test. For example echo hello. Now the... (1 Reply)
Discussion started by: Max89
1 Replies

8. Shell Programming and Scripting

How to check weather a string is like test* or test* ot *test* in if condition

How to check weather a string is like test* or test* ot *test* in if condition (5 Replies)
Discussion started by: johnjerome
5 Replies

9. Shell Programming and Scripting

Test command

hello, i'v trying to use the TEST command and i have some problems with it. i am trying kill all proccess wich is greater than 25. i started with - ps -f | grep -v TTY | awk '{print $4}' but i dont know how to proceed from here.. 10x a lot, Daniel. (11 Replies)
Discussion started by: dadiT
11 Replies

10. Shell Programming and Scripting

TEST Command

Hello, I need help with a test command. Here is what I am trying to do : I've got an interactive script that check if configuration files exist on 2 different directories, then all configuration files are print on screen by a short name. My problem is when you type a "wrong name" or... (12 Replies)
Discussion started by: Aswex
12 Replies
ALEVT-CAP(1)							 Teletext capture						      ALEVT-CAP(1)

NAME
alevt-cap - simple capture of teletext pages SYNOPSIS
alevt-cap [options] ppp[.ss] ... DESCRIPTION
alevt-cap is a simple program to capture teletext pages and write them to disk. You just give it a list of pages to fetch and it will save them. Nothing fancy like time-outs, page ranges, or channel name detection is supported. Though, it supports different file formats - at the moment ascii, ansi (ascii with color escape sequences), html, png, and ppm. OPTIONS
A summary of options is included below. -name filename Gives the filename under which the pages should be saved. It may contain a couple of %-sequences (see below). (default: ttext-%s.%e) -format format-specifier Sets the file format used to save pages (see below). (default: ascii) -format list|help Lists all known file formats and their options. -vbi device Use the given device name. Default: /dev/vbi, /dev/vbi0, /dev/video0, /dev/dvb/adapter0/demux0 tried in this order. -finetune -4..4|auto Specify the fine tuning for the decoder. For the right value play with alevt. Default: 1. -timeout seconds If the pages cannot be captured in seconds, the program terminates with exit status 1 after saving the already captured pages. The default is to wait forever. -charset latin-1|latin-2|koi8-r|iso8859-7 Selects the character set to use. Characters not present in the selected set are replaced by similar looking symbols. (default: latin-1) -progname name Specifies the program name if using the DVB interface. -pid pid Specifies the teletext PID if using the DVB interface. --help Show summary of options. --version Show version of program. Every non-option argument is taken as a page number. Subpages may be given in the form ppp.ss where ppp is the page number and ss is the subpage number. If no subpage is specified, the first transmitted subpage of that page is taken. The page is saved with the prior given format and name. Filenames The filename may contain %-sequences. The following sequences are defined: %% a single % sign. %e the default extension of the selected output format. %p the page number and an optional subpage number. %P the page number. %S the subpage number. %s the page number as given on the command line. Between the % sign and the letter you can give a field width to which the replacement string should be padded. Format specifiers The output format and associated options are given by the format specifier. It is made up of one or more comma separated words. The first word selects the output format and the others are options for that format. There are common options valid for all output formats and for- mat specific (private) ones. Some options have the form of an assignment. The order of the options is free. Only the format name itself must be the first word. An example: ansi,reveal,bg=none The ansi is the format and reveal, and bg=none are options. At the moment there are only two common options: reveal, and hide. They control whether the hidden characters present in a page should be shown in the output or not. The default is hide. The special format string list (or help) will give you a list of all supported output formats and their options. (The ansi format is an alias for ascii,color.) The -progname or -pid option specifies the program or teletext PID if using the DVB interface. If neither of these two options is used, alevt outputs informations about the currently accessible streams and uses the first of these PIDs as default. This output contains the PIDs and names that can be used as an input for the -progname or -pid option in the context of the currently chosen TV channel. DIAGNOSTICS
If the program timed out and some pages are missing the exit status is 1. On fatal errors the exit status is 2. NOTE
Before starting this program, you have to set the TV channel with another program like xawtv of set-tv. FILES
/dev/vbi* /dev/dvb/adapter*/demux* SEE ALSO
alevt(1x), alevt-date(1), BUGS
If you give a page number that is never transmitted the program will not terminate. Bug reports to <froese@gmx.de>. LINUX
1.6.2 ALEVT-CAP(1)
All times are GMT -4. The time now is 04:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy