ive implemented getopt for the command line but have this problem,
#!/bin/sh
text=""
set -- getopt "t" etc .... #sets arguments
while :
do
case "$1" in #gets arguments
-t: shift; text="$1" ;;
shift
done
shift
if
then
echo "no text"
else
echo... (4 Replies)
Help please! :confused:
I have the following error with the following file and the emails are not arriving to the email, any idea please?
ERROR: ./launch_full_backup.sh: Syntax error at line 28 : `else' is not expected.
FECHA=`date +%d%m%y%H%M`... (2 Replies)
Hi All
I am quite new to Unix. Following is a shell script that i have written and getting the subject mentioned error.
#!/bin/ksh
#-------------------------------------------------------------------------
# File: ang_stdnld.ksh
#
# Desc: UNIX shell script to extract Store information.... (3 Replies)
CT=0
while read LINE
do
# Check to see if the LINE is non-empty, and has a <td> tag in it.
if
then
# Increase the TD counter by 1
CT=`echo "$CT+1"`
fi
done <test.htmthrows this error: ksh: test: argument expected
test.htm
<tr>
<td>text</td... (4 Replies)
I have written the following shell script for submitting check to nagios .It was working fine a few hours ago.I don remember what changes i made and its giving integer expression expected error.
#!/bin/bash
#$PGREP ${SSHD}
if ]
then
echo "ssh down"
... (1 Reply)
Hi,
I'm trying to solve an assignement on school where we are supposed to synchronize two threads and write out their ID every other time.
I've written down the code for the two threadFunctions which is associated with two threads created in the main function.
What I'm trying to achieve... (5 Replies)
#include<stdio.h>
int main{
char *fl;
fl=(char*)malloc(150);
strcat(fl,"/tmp/OV/");
printf("\nInside fl--->%s\n",fl);
return 0;
}
I wrote a simple program as above. I got the error
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
Please help me out ! I am... (4 Replies)
Hi All,
I have written a shell script which works all right on bash shell, but when it comes to execute it using ksh on AIX it gives the following error::(
bash$ /bin/ksh getShortInfo.sh
getShortInfo.sh: syntax error at line 26 : `(' unexpected
Could you please indicate what is... (4 Replies)
Discussion started by: Elvis
4 Replies
LEARN ABOUT LINUX
rnano
RNANO(1) General Commands Manual RNANO(1)NAME
rnano - Restricted mode for Nano's ANOther editor, an enhanced free Pico clone
SYNOPSIS
rnano [OPTIONS] [[+LINE,COLUMN] FILE]...
DESCRIPTION
This manual page briefly documents the rnano command.
nano is a small, free and friendly editor which aims to replace Pico, the default editor included in the non-free Pine package. Rather than
just copying Pico's look and feel, nano also implements some missing (or disabled by default) features in Pico, such as "search and
replace" and "go to line and column number".
rnano is a restricted version of nano, which only edits specific files and doesn't allow the user access to the filesystem or a command
shell.
In restricted mode, nano will not:
o read or write to any file not specified on the command line;
o read any nanorc files;
o allow suspending;
o allow a file to be appended to, prepended to, or saved under a different name;
o use backup files or spell checking.
OPTIONS
+LINE,COLUMN
Places cursor at line number LINE and column number COLUMN (at least one of which must be specified) on startup, instead of the
default of line 1, column 1.
-? Same as -h (--help).
-h (--help)
Show a summary of command line options and exit.
-V (--version)
Show the current version number and exit.
See the nano(1) manpage for the complete documentation of nano.
BUGS
Please send any comments or bug reports to nano@nano-editor.org.
The nano mailing list is available from nano-devel@gnu.org.
To subscribe, email to nano-devel-request@gnu.org with a subject of "subscribe".
HOMEPAGE
http://www.nano-editor.org/
AUTHOR
Chris Allegretta <chrisa@asty.org>, et al (see AUTHORS for details). This manual page was originally written by Thijs Kinkhorst
<thijs@kinkhorst.com>, for the Debian system (but may be used by others).
August 23, 2007 version 2.0.0 RNANO(1)