11-16-2010
Please provide more clues about what doesn't work, with error messages.
There is an extra closing parenthesis, param3 is missing a leading $, the script ending is dubious/truncated.
Why are you escaping the double quotes like this \" ?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I was wondering if anyone knew the answer to this question?
I am trying to find a way of executing a command if a certain file is created in the same directory.
One way I thought about doing this was to create a FORTRAN program that continually searches for this file. If the file... (8 Replies)
Discussion started by: robbiegregg
8 Replies
2. Shell Programming and Scripting
Hey all,
How do I execute a file at startup automatically.
From what I've read is that I need to put it into my .bashrc file. I'm not sure where to go from there. Can I just type commands into that and they'll run next time I restart my server?
Right now I have added these lines:
cd... (2 Replies)
Discussion started by: NathanWarden
2 Replies
3. Shell Programming and Scripting
Hello,
I've been trying to run 'ls -1R | wc -l' inside of sub directories to in order to determine how big each folder is.
find . -maxdepth 1 -type d | while read folder
do
cd "$folder" &&
echo "$folder has $(ls -1R | wc -l) files" &&
cd ..
done
or
for... (3 Replies)
Discussion started by: NoobProgrammer
3 Replies
4. UNIX for Dummies Questions & Answers
Basically what i'm trying to do is execute an update command and at the same time have the system do a TCPdump to file for that update traffic.
So I would like to connect the two commands so that the tcpdump terminates automatically when the update finishes/fails/whatever.
Right now I have... (0 Replies)
Discussion started by: MrEddy
0 Replies
5. Shell Programming and Scripting
Hi,
I am executing below script
s1=`pwd`
s2=/space
if
then
echo "done"
else
echo "mistake"
cd /tmp
fi
I am not able to migrate to /tmp directory if the condition is not true.However mistake is being printed.Means cd command is not working here.All other commands except cd are... (3 Replies)
Discussion started by: d8011
3 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I am trying to execute a command using ssh as below.
ssh user123@servername "which ctmcontb"
It is gving the error as below
no ctmcontb in /usr/bin /usr/sbin /opt/sysadm/bin
Not sure from where the PATH is getting picked up.
But When I login direclty to the server I am... (5 Replies)
Discussion started by: anilreddy103
5 Replies
7. Solaris
Hello Guys,
I am studying RBAC. So I create a role called sysadm and gave it the "shutdown" profile.
Now when I switch to that role, and execute the shutdown command
$ shutdown -y -g0 -i5
The system responds with :
shutdown: not found
Can anyone help me with this please?... (1 Reply)
Discussion started by: cjashu
1 Replies
8. Shell Programming and Scripting
Hi,
I have this command in a shell script and I can get it to echo ok, but when I try to execute the command I get a "file not found" error. Which is strange because, if I copy and paste the same command at the cli it works ok.
What am I doing wrong please? (16 Replies)
Discussion started by: bbbngowc
16 Replies
9. Shell Programming and Scripting
Hi All,
I am trying to create a shell script which runs on my linux machine.
The requirement is so that,
ade createview xyz -> this steps creates a view
ade useview xyz -> we are entering inside the view
ade begintrans -> begin a transaction
My script has following code :
lets say... (2 Replies)
Discussion started by: Dish
2 Replies
10. Red Hat
I'm running CentOS 6.8 and use bash. I would like a warning to appear to the user who runs the command "service httpd restart"
E.g.
# service httpd restart
are you sure y/n
n
#
(or if y, the command executes).
I looked into it a little but am not sure of the best approach. Aliases I ... (1 Reply)
Discussion started by: spacegoose
1 Replies
LEARN ABOUT DEBIAN
aeclients
AECLIENTS(1x) AECLIENTS(1x)
NAME
aemenu, aepanel, aesession, switch-desk - programs for use with aewm(1x)
SYNOPSIS
aemenu [--config|-rc <file>] [-s|--switch]
aepanel [--config|-rc <file>] [-b|--bottom]
aesession
aedesk [-n <num>] [[+|-]<num>]
DESCRIPTION
The programs listed above provide several window and session management features to complement aewm(1x). aemenu and aepanel launch pro-
grams and raise existing windows (or unhide iconified ones). aemenu uses a popup menu to accomplish this (the --switch option changes the
function of this menu), while aepanel stays on the screen inbetween uses (launching and switching functionality are both always available).
Each program comes in both a GTK+ and a Xaw version; aemenu is actually a symlink to either aemenu-gtk or aemenu-xaw (likewise for
aepanel).
The list of programs to be run by both clients is read from $HOME/.aewm/clientsrc. There are two kinds of directives that may be used in
this file:
cmd "Description" "command"
defines a command, which whill be interpreted by sh(1).
menu "Title"
(...)
end
defines a submenu. The number of submenus that can be nested within each other is limited only by stack space. Double quotes may be
included within quoted strings by escaping them with a blackslash ("), and quotes may be omitted around single-word descriptions or com-
mands. Blank lines and lines starting with '#' are ignored.
aesession is a do-nothing program; it will simply reap any children it inherits and then sleep. By ending your $HOME/.xsession script with
"exec aesession", you can exit and restart aewm(1x) without killing your X session. The author does not really expect anyone except WM
hackers to find this useful.
aedesk changes to a new virtual desktop, specfied by num, or sets the number of available desktops, with -n.
FILES
$HOME/.aewm/clientsrc
SEE ALSO
aewm(1x)
AUTHORS
Decklin Foster <decklin@red-bean.com>
Adam Sampson <ats@offog.org>
AECLIENTS(1x)