10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Edit - I don't know how to delete posts. The question I asked here ended up not being the question I should have asked as I didn't realise I needed to edit my script to comply with SGE.
Hi,
My script is:
#!/bin/bash
# Perform fastqc on files in a specified directory.
for ((j=1;... (8 Replies)
Discussion started by: una1992
8 Replies
2. Programming
I dont know why this Linux would give me badly placed () error all the time for this;
#include <stdio.h>
int main()
{
register int num=0 ;
while ((num < 5))
++num;
printf("Pass %d \n", num) ;
return 0 ;
}
can anyone help me please? (11 Replies)
Discussion started by: sizzler786
11 Replies
3. Shell Programming and Scripting
The terminal is bash.
Whenever I try to execute csh just by itself it gives Badly Placed ()'s.
Whenever I try to use csh with a script it also gives Badly Placed ()'s.
My script is this, there is nothing wrong with it, since it used by other students in class as well. (I have also asked... (5 Replies)
Discussion started by: quantumizer
5 Replies
4. Shell Programming and Scripting
The shell error message "Badly placed ()'s" can occur for a surprisingly simple oversight. If the script begins with a shell-invocation comment, but is missing the exclamation-point, it is simply a comment and not an invocation. If you attempt to execute it from a shell other than the shell you... (4 Replies)
Discussion started by: Dickster
4 Replies
5. Shell Programming and Scripting
i'm trying to run the following program but i keep getting the message "badly placed ()'s" can u help?
#include "modularity_mat.h"
#include "../sparse_mlpl/sparse_matrix.h"
adj_matrix_arr* allocate_mem_for_matrix_arr (int y) {
/* Create the adj matrix and allocate memory */
... (2 Replies)
Discussion started by: ronirosner
2 Replies
6. Shell Programming and Scripting
I have the following script running every day numerous times a day and it works fine, but very occasionally I get the following error
if: Badly formed number.
Anyone know why?
Here is the script that runs with the follow parms
LCTMDBSE 100000 130000 160000
#!/bin/csh
... (0 Replies)
Discussion started by: Northerner
0 Replies
7. Shell Programming and Scripting
how can I delete one line above and below the matching pattern ?
e.g I want to delete the line above and below the line with %CLI- in example below :
$CHECKSUM $1$DGA1043:TSTST01.DBF;1
%CLI-E-OPENIN, error opening $1$DGA1043:TSTST01.DBF
-RMS-E-FLK, file currently locked by another user
... (6 Replies)
Discussion started by: aliyesami
6 Replies
8. Shell Programming and Scripting
Hi,
I am doing the following but it complains and says "for:badly formed number"
does anyone know why?
#!/bin/tcsh
foreach(....)
............
set depth=64
set width=23
if ($depth==64) then
echo "if"
set addr_bits=5
else
echo "else"
endif
echo "addr_bits:$addr_bits"
echo... (3 Replies)
Discussion started by: ROOZ
3 Replies
9. Shell Programming and Scripting
Hi,
when I execute the below script, I am getting following error "Badly placed ()'s". can anyone please help me fix
----------------------------------------------------------
# Usage: ani -n -a -s -w -d
#
#
# help_ani() To print help
#
help_ani()
{
echo "Usage: $0 -n -a -s -w -d"... (3 Replies)
Discussion started by: amitrajvarma
3 Replies
10. Shell Programming and Scripting
Ok, im brand new to this whole thing, well nearly, but all i wanna know and do is scripting, WHAT DO I DO?!:confused: (3 Replies)
Discussion started by: TheNewGuy
3 Replies
PAM_MAIL(8) Linux-PAM Manual PAM_MAIL(8)
NAME
pam_mail - Inform about available mail
SYNOPSIS
pam_mail.so [close] [debug] [dir=maildir] [empty] [hash=count] [noenv] [nopen] [quiet] [standard]
DESCRIPTION
The pam_mail PAM module provides the "you have new mail" service to the user. It can be plugged into any application that has credential or
session hooks. It gives a single message indicating the newness of any mail it finds in the user's mail folder. This module also sets the
PAM environment variable, MAIL, to the user's mail directory.
If the mail spool file (be it /var/mail/$USER or a pathname given with the dir= parameter) is a directory then pam_mail assumes it is in
the Maildir format.
OPTIONS
close
Indicate if the user has any mail also on logout.
debug
Print debug information.
dir=maildir
Look for the users' mail in an alternative location defined by maildir/<login>. The default location for mail is /var/mail/<login>.
Note, if the supplied maildir is prefixed by a '~', the directory is interpreted as indicating a file in the user's home directory.
empty
Also print message if user has no mail.
hash=count
Mail directory hash depth. For example, a hashcount of 2 would make the mail file be /var/spool/mail/u/s/user.
noenv
Do not set the MAIL environment variable.
nopen
Don't print any mail information on login. This flag is useful to get the MAIL environment variable set, but to not display any
information about it.
quiet
Only report when there is new mail.
standard
Old style "You have..." format which doesn't show the mail spool being used. This also implies "empty".
MODULE TYPES PROVIDED
The session and auth (on establishment and deletion of credentials) module types are provided.
RETURN VALUES
PAM_BUF_ERR
Memory buffer error.
PAM_SERVICE_ERR
Badly formed arguments.
PAM_SUCCESS
Success.
PAM_USER_UNKNOWN
User not known.
EXAMPLES
Add the following line to /etc/pam.d/login to indicate that the user has new mail when they login to the system.
session optional pam_mail.so standard
SEE ALSO
pam.conf(5), pam.d(5), pam(7)
AUTHOR
pam_mail was written by Andrew G. Morgan <morgan@kernel.org>.
Linux-PAM Manual 06/04/2011 PAM_MAIL(8)