For completely portable /bin/sh syntax, you can't use (( ... )) either.
It's not necessarily so that you "should be" using ksh -- depends on your requirements. If you're writing a script just for yourself, then ksh is arguably more convenient. If you're writing a script for copying to other places where ksh might not be available, it's probably better to stick to Bourne shell syntax (or POSIX shell syntax, or, if portability is important, rewrite the thing in something truly portable, such as Perl [ducks]).
I am trying to use SCCS for project development . Can any one list out the basic setup nneded to be done for SCCS .
I mean if I create a SCCS directory what all files to create on this .
i don't have a root password of the system and I am not going to get one .
I saw few post on this forum... (1 Reply)
Hello gurus,
I am facing an unusual problem while running nohup in shell scripts.
i want to run two scripts simultaneously.In first script ,i take a backup of "nohup.out" & remove it .In second script,i state "nohup ./scriptname"
but "nohup.out" is not getting generated ??
pls find attached... (1 Reply)
Dear All,
I want acces my folder that name Log , that throught /export/home/hmi/bin/log.
I want direct to Log folder.
When I try using alias, i'm login as root:
>alias logfile='cd /export/home/hmi/bin/Log'
and when I execute
> logfile
this is work,
but after I logout and login again as... (3 Replies)
i have like this
touch /tmp/s1
touch /tmp/s2
f1=/tmp/s1
f2=/tmp/s2
if
then
echo "f1 is the new file "
fi
if i run this i am getting
% slp.sh
slp.sh: test: unknown operator -nt (2 Replies)
hi,
I have been trying to make my script work but could not, tried some of the suggestions from here but I am not getting the correct result.
I have a script that was
Param1 ="$1"
Param2 ="$2"
$Script1 log -t "$param1" "$param2" | grep operation > /dev/null || {
echo "Message"... (1 Reply)
hi
I wrote the following makefile, I have just one problem, when i type make clean I get the message make 'clean' is up to date and any obj file is removed from my folder, what's wrong?
Thank you
CC = cc
all: es.o elaboration.o
$(CC) -o es es.o elaboration.o
elaboration.o:... (0 Replies)
I am trying to copy a folder which contains a list of C executables.
It takes 2 mins for completion,where as the entire script takes only 3 more minutes for other process.
Is there a way to copy the folder faster so that the performance of the script will improve? (2 Replies)
I logged in as root and visudo'd /etc/sudoers.
I found several users with the username ALL=(ALL) ALL entries and added an account after the last one.
Saved the file.
When the user logs in and does "sudo su -" they are prompted for their password and then told they are not in the sudoers file.... (8 Replies)
Can someone please help me with this I can't make it work?
find /test -type f \( ! -perm -u+w -o -perm -g+w \) | egrep -v "/test/A|/test/B"|xargs chmod u+rw,g+r-w,o=
I am getting error "Operation not permitted."
I want to find files, exclude directory A & B and change permission on the... (2 Replies)
Discussion started by: Jang
2 Replies
LEARN ABOUT V7
suspend
suspend(1) User Commands suspend(1)NAME
suspend - shell built-in function to halt the current shell
SYNOPSIS
sh
suspend
csh
suspend
ksh
suspend
DESCRIPTION
sh
Stops the execution of the current shell (but not if it is the login shell).
csh
Stop the shell in its tracks, much as if it had been sent a stop signal with ^Z. This is most often used to stop shells started by su.
ksh
Stops the execution of the current shell (but not if it is the login shell).
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO csh(1), kill(1), ksh(1), sh(1), su(1M), attributes(5)SunOS 5.10 15 Apr 1994 suspend(1)