Hi Here is the script that i have. it is fine, but is there a better way to do it?
#!/bin/ksh
if [ $1 = report ] || [ $1 = run ] && [ $2 -gt 0 ]
then
echo "This is correct: $0 $1 $2"
else
echo "USAGE:$0 <report|run> <number> "
fi
Frieds,
./script.ksh $1 $2
i want to run a korn shell script only if $1 is equal to report or run and if $2 any number greater than zero.
Can someone advise me the efficient way to write this script.
Do you have BCV or Volume snapshot option in your SAN environment?. Do you use any media servers with SSO option? Do you have any Disk Staging or Disk Storage unit on SAN?. You can make use of your SAN with all the above questions answered.
Is there any WEB based system administration tool which comes along with Solaris 8 like "webmin" (www.webmin.com/solaris.html ). If so can anyone let me know how to configure the same.
We are looking at administering the Solaris box completely through a web interface. Main tasks include adding...
Hi,
Thanks all for the response. I tried the
passwd -f -d username
but it didn't work. I use Solaris 8. Does this cmd work with any of your boxes. i would like to do this way instead of having an additional tools.
I will try the setpass utility also.
Thanks
Is there a way to make the user to choose the passwd. After adding the users using useradd command. This is possible if i add a new user thru admintool (cleared until first login option)but not thru useradd command.
U can also stop the automount and create users with -m option which will create home directories in /home
ex:
useradd -u 400 -m -g user -c "user oops" oops
will create user with id 400 and gid user and home dir /home/oops
Tried using mv ./* newname but this didn't help. Any other way to do this.?
Following is the output.
pisces:/usr21/temp/stage_new:# mv ./* new
mv: cannot access ./*
pisces:/usr21/temp/stage_new:# cp -r ./* new
cp: cannot access ./*
Hi,
I hav a strange situation. We use VXFS. One of the directory is hidden in my system. I don't know how to unhide it. This doesn't start with (.). Pls find the out put of the following commnads which wud give more idea about the problem. I could not see any files in the below directory unless...
I tried the following the problem is still the same.
# umount -v /bcp
umount: /cdrom: Block device required
# umount 10.32.22.140:/hpux
umount: /cdrom: Block device required
Is there anyother way..
I have mounted a NFS volume on a HPUX but when i try to unmount the same i
am getting the following error.
*******output of the command*********
#umount /bcp
umount: /cdrom: Block device required
**************************************
/bcp is the dir wer i am mounting the NFS volume which is...
I hav mounted a NFS volume on a HPUX but when i try to unmount the same i
am getting the following error.
*******output of the command*********
#umount /bcp
umount: /cdrom: Block device required
**************************************
/bcp is the dir wer i am mounting the NFS volume.
This is a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.