x= $PS | grep -v grep | grep $SAMBA_DIR/bin (Photography web hosting)
x= $PS | grep -v grep | grep $SAMBA_DIR/bin if [ ! “$x” ]; then echo “No samba processes running” else echo ” PID TT STAT TIME COMMAND” echo “$x” fi ;; restart ) /etc/rc2.d/S91samba stop /etc/rc2.d/S91samba start /etc/rc2.d/S91samba status ;; *) echo “$0: Usage error — you must say $0 start, stop, status or restart.” ;; esac exit You ll need to set the actual paths and ps options to suit the machine you re using. In addition, you might want to add additional commands to tell Samba to reload its smb.conf file or dump its nmbd tables, depending on your actual needs. smbsh The smbsh program lets you use a remote Windows share on your Samba server as if the share was a regular Unix directory. When it s run, it provides an extra directory tree under /smb. Subdirectories of /smb are servers, and subdirectories of the servers are their individual disk and printer shares. Commands run by smbsh treat the /smb filesystem as if it were local to Unix. This means that you don t need smbmount in your kernel to mount Windows filesystems the way you mount with NFS filesystems. However, you do need to configure Samba with the –with-smbwrappers option to enable smbsh. Options -d debuglevel Sets the debug (sometimes called logging) level. The level can range from 0, the default, all the way to 10. Debug level 0 logs only the most important messages; level 1 is normal; level 3 and above are primarily for debugging, and slow smbsh considerably. -l logfile Sets the name of the logfile to use. -P prefix Sets the root directory to mount the SMB filesystem. The default is /smb. -R resolve order Sets the resolve order of the name servers. This option is similar to the resolve order configuration option, and can take any of the four parameters, lmhosts, host, wins, and bcast, in any order. 420
In case you need quality webspace to host and run your web applications, try our personal web hosting services.