1. there's a missing command in the code ... and you cannot put that code in a cat HERE document because the cat command will only echo it instead of executing it ...
2. did you specify the path to the phonebook file?
also, you are putting in Here documents needlessly ... try to make your code simpler by ...
instead of ...
... and variables that will have the same value throughout the script can be defined once at the beginning of the script and do not have to be redefined for each section ...
Hey all,
I've been trying to find a document. The document is a list of all supported hardware that Solaris 7 supports. If anyone knows where this can be found thx in advanced. I've tried looking through the docs.sun.com site and can't find what I am after.
It's just a list of hardware... (1 Reply)
I do not know how valid this post is, but here it is.
I was writing a script for testing some development code that I had written. It involved many echo statements to redirect the output into a log file.
Given the large number of echo statements, I took to this solution
cat <<EOF >>... (2 Replies)
Hello,
I want to know the use of the here document with the << operator.
Tried to go through some books but the concept was not clear.
Please can any1 expalin me this with a simple example.
Thanks,
Rahul. (6 Replies)
Plz can somebody give me the shell and perl scripting documents,i need to start the scrpts learning.now i know about the linux commands,but need help in putting the same in the scripting with do,if,while and also using diffrent commands in the scrpipts,pls help.. (3 Replies)
Can we use a here document inside a here document?
Something like this
ssh user@remotehost << REMOTE
sudo vserver vsernamename enter << VSERVER
perform actions on vserver.
VSERVER
REMOTE (6 Replies)
Hi, I am new to Unix. I've started with a book "Unix for Dummies".
Please help, any websites with extensive amount of practice exercises are needed. I need to practice! Also I would appreciate any books that are good for beginners. Thanks to all! (1 Reply)
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:
<HTML><HEAD><TITLE>Personal Web Page</TITLE></HEAD>
<BODY BGCOLOR="WHITE"><H3>
<CENTER>My Personal Page<HR>... (0 Replies)
I have code like
var="1"
echo << EOF
export `var="2"`
EOF
echo $var
The value of var is printed here is 1 but it should be 2
Any error there?
---------- Post updated at 11:44 AM ---------- Previous update was at 10:33 AM ----------
Also tried
var="1"
echo var << EOF
echo... (1 Reply)
Discussion started by: adisky123
1 Replies
LEARN ABOUT DEBIAN
sendsms
sendsms(1) gnokii sendsms(1)NAME
sendsms - command line tool to send SMSes using gnokii
SYNOPSIS
sendsms [OPTIONS]
DESCRIPTION
sendsms allows you to send a SMS using gnokii not knowing the syntax of gnokii command. It is written using dialog and allows to send a
text SMS choosing recipients from the phone address book or entering it manually.
OPTIONS
Available options:
[--debug|-D]
May bother with more debugging messages. For debugging purpose.
--simul[ate], -S
Simulation mode. Doesn't really send SMS by phone. Only simulates. For debugging purpose.
--forceSMread, -s
Forces sendsms to read phonebook from SIM card, and to parse the generated file in order to update the numbers' list (useful only if
required to pickup number from the phone's memory). See NOTE.
--forceMEread, -m
Forces sendsms to read phonebook from phone memory, and to parse the generated file in order to update the numbers' list (useful
only if required to pickup number from the phone's memory). See NOTE.
--skipgnokiicheck, -K
Skip the test of the presence of binary 'gnokii'. (It must be somewhere in your $PATH). It allows you to try this script program,
even if you don't have 'gnokii' already. ;)
--smsset, --setsms
Allows you to preset a SMS message from STDIN. (pipe or input redirection). This message will be proposed on the 'SMS message'
field during the program input cycle.
--help, -h, /h
display this help and exit
--version, -V
output version information and exit"
NOTE: If you require to pickup number from phone's memory (or from SIM card), for the first time, it anyway reads phonebook from your
mobile phone. (It may take a while... please, be patient ;-)
BUGS
None reported.
AUTHOR
Sendsms was written by Gabriele Zappi - Rimini <gzappi@inwind.it>.
This manual page was written by Pawel Kot.
COPYING
This program is distributed under the GNU Public License.
SEE ALSO
gnokii
Pawel Kot August 29, 2003 sendsms(1)