I am building a script that evaluates the difference between 2 files. Here is a command that does not work transparently.
Running this command in Terminal yields great results; however when I put that line in a .sh script, I get the errors shown below. Am I doing something silly?
Hey there, I'm a total newbie unix guy here and just picking this stuff up. Have a very small script I put together that works fine from the command line but not once I put it in a cron job. Searched and found this thread and am wondering it it has something to do with setting variables, though the... (7 Replies)
Hi all,
The following script is fine when I work via command line
m=1
c=0
while
do
echo $m
gnokii --getsms IN $m > out.txt;
m=`expr $m + 1`;
cat out.txt >> message_log;
############
read first crap< <(sed -n '/Text:/{n;p;}' out.txt);
read message< <(sed -n '/Text:/{n;p;}'... (2 Replies)
Hi all-
I'm trying to search through some .gz log files to verify certain feeds have passed through our app.
I have a small script that I wrote in hopes that I could automate the checking but haven't been able to get the zgrep to work. When I copy it to the command line directly it works... (2 Replies)
When I run this code from the command line works
spinel.middlebury.edu:/u02/sct/banner/bandev2/middlebury/shl:DEV2$ ls ef*
eftseq.dat
spinel.middlebury.edu:/u02/sct/banner/bandev2/middlebury/shl:DEV2$ file_seq=$( < eftseq.dat) ... (1 Reply)
so in unix this command works works and shows me a list of directories
find . -name \*.xls -exec dirname {} \; | sort -u | > list.txt
but when i try running a perl script to run this command
my $query = 'find . -name \*.xls -exec dirname {} \; | sort -u | > list.txt';... (2 Replies)
Hey guys. Hopefully this is an easy one but having reference similar problems on the web I still can't fix it.
I am doing a recursive find and replace from a script. Of course I could just run the damn thing from the command line but it's bugging me now and want to get it working.
grep -rl... (4 Replies)
I have a really basic expect script which I call from php. I works fine when I run the php from the shell, but from the web it appears as if the output buffer gets chopped and never gets all of the contents.
php script: (runexpect.php)
<?php... (7 Replies)
Hi guys. My first post, so be gentle...
On my Solaris 10 machine vnc server is running. I need a command to extract most recent client session number (screen). So with:
Code:
bash-3.2# ps -ef | grep vnc | grep Xaut
root 19805 19797 0 15:41:44 ? 0:01 Xvnc :4 -inetd -once... (5 Replies)
I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes
CC=`which gcc`
CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
I wish to replace "\\n" with a single white space.
The below does the job on command-line:
$ echo '/fin/app/scripts\\n/fin/app/01/sql' | sed -e 's#\\\\n# #g';
/fin/app/scripts /fin/app/01/sql
However, when i have the same code to a shell script it is not able to get me the same output:... (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT OSF1
tic
tic(1) General Commands Manual tic(1)NAME
tic - Translates terminfo files from source to compiled format
SYNOPSIS
tic [-v[number]] [-c] [file...]
The tic command translates terminfo files from the source format into the compiled format.
OPTIONS
Checks the file for errors only. Errors in the use= field are not detected. Writes trace information on the progress of the tic command.
The number parameter is an integer, from 0 to 8, that increases the level of verbosity. If number is omitted, the default is 1.
DESCRIPTION
If a file is not specified, the tic command reads standard input.
The tic command places the results in the /usr/share/lib/terminfo directory. If the TERMINFO environment variable is set, the results are
placed there instead of in /usr/share/lib/terminfo.
The tic command compiles all terminfo descriptions in the file or files specified by the file variable. When the tic command finds a use=
field, it searches first the current file, then reads in the binary from /usr/share/lib/terminfo to complete the entry. If the environment
variable TERMINFO is set, that directory is searched instead of /usr/share/lib/terminfo.
The size of a compiled entry cannot exceed 4096 bytes and the name field cannot exceed 128 bytes. Terminal names exceeding 14 characters
are truncated to 14 characters and a warning message is printed.
ENVIRONMENT VARIABLES
The following environment variables affect the behavior of tic: Causes the command to behave as a System V command if the value of this
environment variable is set to SVR4 or svr4. The options designated by [SVR4] are honored while identical non-System V options are
ignored. Command output and error messages also follow System V conventions.
FILES
Terminal information database.
SEE ALSO
Commands: captoinfo(1), infocmp(1)
Functions: curses(3)
Files: terminfo(4)tic(1)