01-20-2012
Not showing the correct string...
Scripting GURU,
I have written a ksh script to get a number from a file and attempting to input the number into the sendsms output script..
But i am finding that ONCALL_NUMBER is showing as $ONCALL_NUMBER as the output for the TO:$ONCALL_NUMBER@sms.info.com message and not as TO:+44123456789@sms.info.com
Can you help please.
HTML Code:
Script
------
ONCALL_NUMBER=`$SCRIPT/smsnumber`
$SCRIPT/sendsms 'TO:$ONCALL_NUMBER@sms.info.com%FROM:Ateam@info.com%SUBJECT:<The Box is knackered again>'
HTML Code:
Output
------
+ ONCALL_NUMBER=+44123456789
+ sendsms TO:$ONCALL_NUMBER@sms.info.com%FROM:Ateam@info.com%SUBJECT:<The Box is knackered againain>
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi there,
How can I expand the command filed sizing when using a ps command. With diretories and script names and parameters being set I'm not getting some of the information that I need (at the end of the command line).
I'm using HP_UX 11i.
Cheers,
Neil (2 Replies)
Discussion started by: nhatch
2 Replies
2. AIX
Hi All,
I have been working with two AIX with san and this is the first I got this minor problem on my third AIX. The san/hdisk was recreated so many times because of this problem. When I created a new vg and fs. The fs will be mounted/unmounted properly but if I query the fs on a vg with... (2 Replies)
Discussion started by: itik
2 Replies
3. Shell Programming and Scripting
I have input file like this
Input file:
ABC|abc_etc_passwd
XYZ|XYZ_etc_passwd
zXY|XYZ_etc_passwd
IJK|test_etc_passwd
KLM|test_etc_passwd
i want to do following in a loop.
grep 'ABC' *abc_etc_passwd*
grep 'XYZ' *XYZ_etc_passwd*
grep 'ZXY' *ZXY_etc_passwd*
i have tried this
for i... (2 Replies)
Discussion started by: pinnacle
2 Replies
4. Programming
I have string named texts which consist of section label “BOOK-SEC-“. Section starts from 1 to n, where n is a number. For this example conside the value of n is 9. That is, the string variable looks like
“BOOK-SEC-1... (2 Replies)
Discussion started by: SamRoj
2 Replies
5. Linux
Process start time is not showing the correct time:
I had started a process on Jun 17th at 23:30:00.
Next day morning when I run the command "ps -ef | grep mq", the process is showing the start date of Jun 17th but the start time is 00:16:41
Day/Date is setup correctly on the server.
It... (2 Replies)
Discussion started by: hemangjani
2 Replies
6. AIX
I have 1 box running 5.2 and another running 5.3. Both use the NIS accounts and NFS home directories. Users can telnet on to both and 'who' displays the login.
However when users run xterms using a remote X server (e.g. Exceed), by telnetting then running
/usr/bin/X11/xterm -d xxx.xxx.xxx.xxx:0
... (1 Reply)
Discussion started by: spitzie
1 Replies
7. Linux
Hi,
I am having an issue releated to shell-environment on a server.
Let me explain with the example of below script:
#!/bin/ksh
echo " enter:\c"
read a
echo $a
As I am using ksh the expected output from this script should be 'enter:' (expecting the input for read in same... (8 Replies)
Discussion started by: mystition
8 Replies
8. Shell Programming and Scripting
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Discussion started by: vivek d r
10 Replies
9. Shell Programming and Scripting
if ; then
rm -rf "${x}"_"${y}"_abc_pqr.dat error: `then' unmatchedCan anyone please help me in correcting it.
Please use code tags next time for your code and data. Thanks (2 Replies)
Discussion started by: D_Sethi
2 Replies
10. Shell Programming and Scripting
Hello
I am working on one script where I am trying to display all the directories which is inside the workspace but somehow it is giving me weird output and this is occurring only with one directory other also having the result.html file inside the directory.
for i in `ls -1 | egrep -iv... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies
LEARN ABOUT DEBIAN
dwww-convert
DWWW-CONVERT(8) Debian DWWW-CONVERT(8)
NAME
dwww-convert - convert files to HTML for dwww
SYNOPSIS
dwww-convert [--no-path-info] type location
DESCRIPTION
dwww-convert is part of the dwww package, which provides access to on-line documentation on a Debian system via WWW. dwww-convert converts
documentation to HTML so that it can be viewed with a WWW browser. dwww-convert is usually run by the WWW server, but can also be run by
hand.
The type argument gives the type of the file, one of:
file An arbitrary file; the type is guessed using simple heuristics based on the filename.
dir A directory. If the directory contains the file index.html or index.htm that file will be returned. Otherwise, A listing of the
files in the directory is generated.
html An HTML file. The file is returned as is.
man A manual page. The location is the pathname of the nroff source file.
runman A manual page. The location is the name of the manual page and its section, separated by a slash. For example, the location would
be intro/1 to refer to the intro(1) manual page.
info An Info file.
text A plain text file (using the ISO-8859-1 character set).
An unknown file type is treated as text.
The location argument gives the filename of the file. The name must be complete, i.e., it must start at the root directory (/). The name
must not contain any symbolic links (cf. realpath(1)). The file must be located in or below a directory that has been allowed by the sys-
tem administrator; see dwww(7) for more info.
The file may be compressed with gzip(1) or bzip2(1). It is uncompressed automatically and invisibly. Compression is indicated by a file-
name that ends in `.gz' or `.bz2'.
OPTIONS
--no-path-info
Internal option used by the dwww's CGI script to let dwww-convert know, that the arguments following the option do not come from the
PATH_INFO variable, but from the QUERY_STRING.
FILES
/etc/dwww/dwww.conf
Configuration file for dwww. See dwww(7) for more information.
SEE ALSO
dwww(7), dwww-txt2html(8), dwww-build(8), dwww-cache(8).
AUTHOR
Lars Wirzenius. Modified by Robert Luberda.
See dwww(7) for copyrights and stuff.
dwww 1.11.1 February 15th, 2009 DWWW-CONVERT(8)