You've got ; | If you want to pipe, you shouldn't end in ;, because ; means "end this command and start a new one".
Also, that \ in the middle of the line probably isn't doing what you want. It probably was there originally to combine two lines into one but now it's combining a line you don't want to be part of the statement, "done", into the statement. Ditch it.
I am trying to run the script bellow but its given me "syntax error at line 20 :'done' unexpected." error message"
can someone check to see if the script is ok? and correct me pls.
Today is my first day with scripting.
Gurus should pls help out
#!/bin/ksh
# Purpose: Check to see if file... (3 Replies)
one of my script as follows
HOME=/apps/logs
mv $HOME/cron.log $HOME/cron.log.`date +%Y-%m-%d`
touch $HOME/cron.log
fi
i am getting error as follows
on the last line we are getting ...
"syntax error near unexpected token `fi' "
please suggest.... (4 Replies)
I have a very simple script that reads in the contents of a file (_open.txt) into an array "lyrics":
#!/bin/sh
# read in the text
lyrics=( `cat _open.txt` | tr '\n' ' ')
exit 0
It gives the following error message:
./lyrics.sh: 1: Syntax error: word unexpected (expecting ")")
I have... (9 Replies)
the below code will search attr string inside makefile under the modelno on given path.
echo "Enter model no for searching string inside makefile"
read inputs2
#find /pools/home_unix/sapte/work/models/model/$inputs2 -name "makefile" | xargs grep "attr" \;
#;;I am getting below error.... (7 Replies)
Hi Techies,
can anyone please debug the following Script and let me know what is going wrong here.
im getting the following error
#!/usr/bin/bash
# ##############################################################################################
#
# Variables
#
#... (2 Replies)
Hi All,
Please hav a look at the below peice of script and let me know if there are any syntax errors.
i found that the below peice of Script is causing issue. when i use SFTP its working fine, but there is a demand to use FTP only. please find below code and explain if anything is wrong... (1 Reply)
While i m running below code, it is giving me the error"syntax error at line 15: `end of file' unexpected".
Pls let me know what is wrong here..i tried many ways, but no luck
dbSID="SWQE"
usrname="apps"
password="Wrgthrk3"
count=0
while
do
sqlplus $usrname/$password@$dbSID... (5 Replies)
Hi All,
I'm completely new to bash scripting and still learning my way through albeit vey slowly.
I need to know where to insert my server names', my ip address numbers through out the script alas to no avail.
I'm also searching on how to save .sh (bash shell) script properly.... (25 Replies)
Hello all,
I am running a script to generate a report and mail it to an email address.
When I am trying to validate whether the file is a 0 kb file, I am getting the below error.
Error: "Syntax error; unexpected end of file"
Any suggestions please?
Code:
#!/bin/sh
.... (1 Reply)
Discussion started by: Pradeep_Raj
1 Replies
LEARN ABOUT OSF1
mailusradm
mailusradm(8) System Manager's Manual mailusradm(8)NAME
mailusradm - Administer User Mail
SYNOPSIS
/usr/sbin/sysman mailusradm [-ui cui [cuioptions] | gui [x resources]]
OPTIONS
Specifies the user interface to be invoked. The choices are: Invokes the command line interface. Invokes the graphical user interface.
Specific command line options that will be used to interact. Specifies the standard X11 resource options. For more information, see the
X(1X) reference page
DESCRIPTION
The Mail User Administration application is used by the system administrator to administer the mail system. Specifically, the mail adminis-
trator can change the mail service type of a single user, a group of users, or all the users on a local system. The mail administrator can
also delete defunct mail user accounts.
The mail service types are: Local Mail Post Office Protocol (POP), which is designed to allow single user computers to retrieve electronic
mail from a POP server. The POP server might be a computer with a permanent Internet connection where its clients might connect to it only
occasionally. Internet Message Access Protocol (IMAP), which is a protocol that allows a client to access and manipulate electronic mail
messages on a server. IMAP allows the manipulation of remote message folders known as mailboxes. IMAP has operations for creating, delet-
ing, and renaming mailboxes; for checking for new messages; for permanently removing messages; for searching; and for selective fetching of
message attributes, text, and other portions. It does not specify a means of posting mail; a mail transfer protocol, such as SMTP, handles
this function.
Furthermore, the mail administrator can specify the use of mail passwords on users under POP and IMAP.
mailusradm has two user interface options: Graphical user interface (GUI) Command line interface (CUI)
Running the Graphical User Interface Option:
The mailusradm application can be invoked from:
The CDE Application Manager Application Group: System_Admin Desktop_Apps Subgroup: Configuration
To start mailusradm from the command line, enter: /usr/sbin/sysman mailusradm -gui
Running the Command Line Interface Option:
To start the mailusradm command line interface, enter the following command from the terminal: /usr/sbin/sysman mailusradm -ui cui [cuiop-
tions]
RESTRICTIONS
You must have the appropriate privileges to use this application.
FILES
Mail User Administration application Help Volume
SEE ALSO
Commands: cyradm(1), dtmail(1), imapd(8), mailauth(8), mailconfig(8), popd(8)
System Administration
mailusradm(8)