[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] New Menu, Samba on a RaQ3i



Thanks for this!   But...

Boy, I'm missing something really easy, I think?

How do you run it?  My experience is pasted just below.  Me?  A shell
expert?  NOT!

-d

------------------------------------------

[root@seaview /sbin]# ls -l /sbin/menu.sh
-rwxr-xr-x   1 root     root          775 Jan 25 12:07 /sbin/menu.sh

[root@seaview /sbin]# /sbin/menu.sh
sh: /sbin/menu.sh: No such file or directory

[root@seaview /sbin]# ./menu.sh
sh: ./menu.sh: No such file or directory

[root@seaview /sbin]# cat ./menu.sh
#!/bin/sh
clear

cat << EOF


                             Management Console
                        ----------------------------

                          1) Edit users
                          2) Stop Apache
                          3) Start Apache
                          4) View System Performance
                          5) Restart Samba
                          6) Frontpage Administrator


Make Your Choice:
EOF



 read x y z

 case "$x" in
        1) userconf ;;
        2) /./etc/rc.d/init.d/httpd stop ;;
        3) /./etc/rc.d/init.d/httpd start ;;
        4) top ;;
        5) get /./etc/rc.d/init.d/smb restart ;;
        6) /./usr/local/frontpage/version4.0/bin/fpsrvadm.exe ;;

        *) echo Cant do that !!
 esac

[root@seaview /sbin]#

----------------------------------------------

> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Victory Systems
> ( ebizhosting.com )
> Sent: Tuesday, January 25, 2000 9:28 AM
> To: 'cobalt-users@xxxxxxxxxxxxxxx'
> Subject: [cobalt-users] New Menu, Samba on a RaQ3i
>
>
> Here is a small menu for anyone wanting to run a few comenly used
> commands including restarting samba. Name this file menu.sh or somthing
> simular.
> Please remember that this file must be chmoded to 755 and to run it, you
> would type,  ./menu.sh  in the dir that it lives.
>
>
>
> # Cut below this line ------
>
> #!/bin/sh
> clear
>
> cat << EOF
>
>
>                              Management Console
>                         ----------------------------
>
>                           1) Edit users
>                           2) Stop Apache
>                           3) Start Apache
>                           4) View System Performance
>                           5) Restart Samba
>                           6) Frontpage Administrator
>
>
> Make Your Choice:
> EOF
>
>
>
>  read x y z
>
>  case "$x" in
>         1) userconf ;;
>         2) /./etc/rc.d/init.d/httpd stop ;;
>         3) /./etc/rc.d/init.d/httpd start ;;
>         4) top ;;
>         5) get /./etc/rc.d/init.d/smb restart ;;
>         6) /./usr/local/frontpage/version4.0/bin/fpsrvadm.exe ;;
>
>         *) echo Cant do that !!
>  esac
>
>
> # cut above this line -----
>
>
>
> -----------------------
> Randall Clark
> Victory Systems Inc.
> Ph. 250-381-4483
> Fax. 250-381-4473
> www.ebizhosting.com
> admin@xxxxxxxxxxxxxxxxxx
>
> -----Original Message-----
> From: Audric Leperdi [mailto:aleperdi@xxxxxxxxxxxxx]
> Sent: Monday, January 24, 2000 5:57 PM
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: [cobalt-users] Samba on a RaQ3i
>
>
> Anyone configured succesfully Samba on a RaQ3i?
>
> I've enabled swat in the inetd.conf, configured smb.conf, swat over web
> interface works nicely ... but the daemon is not up yet..
>
> What is the best place to start the daemon? /etc/rc.d/rc ? ..
>
> tnx
>
> Audric Leperdi
> CIO - evolutiva srl
> Via Varallo, 30 -10153 - Torino - Italy
> tel +39 011 8121617 - fax. +39 011 8121614
> www.evolutiva.com
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
>