I have three cron entries in a file /cron_entries as
15 * * * * /bin/hourjobs > /tmp/hrjob.log 2>&1
..................
....................
I am trying to read this file in for loop using code below:
cron=`cat /cron_entries`
for line in $cron
do
printf... (4 Replies)
Hello,
I am trying to save in a file a single "*" but its not working... look what i am doing...
FILE="/home/teste/a.txt"
...BEGIN...
ASTERISK="*"
echo "STRING $ASTERISK STRING" >> $FILE
...END...
when i do it, the result is a list of all files of the current... (4 Replies)
So, here's the deal... I was attempting to type this:
> grep -R "searchterm" *
and somehow I typed this instead:
> grep -R "searchterm"
> *
I accidentally typed "space-asterisk" on the second prompt. This apparently caused Bash to attempt to run the first file in the pwd, which... (1 Reply)
I want to give my long scripts to customer. The customer must not be able to read the scripts even if he has the password. The following command locks and unlocks the script but the set +x is simply ignored.
The code:
read -p 'Script: ' S && C=$S.crypt H='eval "$((dd if=$0 bs=1 skip=//|gpg... (7 Replies)
I have to print the number of stars that increases on each line from the minimum number until it reaches the maximum number, and then decreases until it goes back to the minimum number. After printing out the lines of stars, it should also print the total number of stars printed.
I have tried... (13 Replies)
Discussion started by: rohit_shinez
13 Replies
LEARN ABOUT DEBIAN
astman
ASTMAN(1) Linux Programmer's Manual ASTMAN(1)NAME
astman -- a client to asterisk's manager interface
SYNOPSIS
astman hostname
DESCRIPTION
astman This program is a full-screen (terminal) client for Asterisk's manager interface.
OPTIONS
hostname
The host name or IP address to connect to (TCP port 5038). If astman fails to connect it will exit immidiately.
USAGE
If astman has successfully cunnected to the manager port it will prompt the user for a username and a secret (password) for the manager
interface on the remote Asterisk manager interface. It will then be able to report existing channels (calls). You will then be able to re-
direct calls to or terminate them.
SEE ALSO asterisk(8)
http://www.voip-info.org/wiki-Asterisk+astman
BUGS
The hostname does not default to localhost.
Impossible to use a port other than 5038.
The username and password cannot be defined from the command-line.
I mean, what's the point in a man page if the syntax is so simple?
AUTHOR
This manual page was written by Tzafrir Cohen <tzafrir.cohen@xorcom.com> Permission is granted to copy, distribute and/or modify this docu-
ment under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
astman Jun 12th, 2005 ASTMAN(1)