;;;###autoload
(defun ifconfig ()
- "Run ifconfig and display diagnostic output."
+ "Run `ifconfig-program' and display diagnostic output."
(interactive)
(net-utils-run-simple
(format "*%s*" ifconfig-program)
;;;###autoload
(defun iwconfig ()
- "Run iwconfig and display diagnostic output."
+ "Run `iwconfig-program' and display diagnostic output."
(interactive)
(net-utils-run-simple
(format "*%s*" iwconfig-program)
;;;###autoload
(defun netstat ()
- "Run netstat and display diagnostic output."
+ "Run `netstat-program' and display diagnostic output."
(interactive)
(net-utils-run-simple
(format "*%s*" netstat-program)
;;;###autoload
(defun arp ()
- "Run arp and display diagnostic output."
+ "Run `arp-program' and display diagnostic output."
(interactive)
(net-utils-run-simple
(format "*%s*" arp-program)
;;;###autoload
(defun route ()
- "Run route and display diagnostic output."
+ "Run `route-program' and display diagnostic output."
(interactive)
(net-utils-run-simple
(format "*%s*" route-program)
;;;###autoload
(defun traceroute (target)
- "Run traceroute program for TARGET."
+ "Run `traceroute-program' for TARGET."
(interactive "sTarget: ")
(let ((options
(if traceroute-program-options
;;;###autoload
(defun nslookup ()
- "Run nslookup program."
+ "Run `nslookup-program'."
(interactive)
(switch-to-buffer (make-comint "nslookup" nslookup-program))
(nslookup-mode))
;; This is a lot less than ange-ftp, but much simpler.
;;;###autoload
(defun ftp (host)
- "Run `ftp program."
+ "Run `ftp-program' to connect to HOST."
(interactive
(list
(read-from-minibuffer
nil t)))
(defun smbclient (host service)
- "Connect to SERVICE on HOST via SMB."
+ "Connect to SERVICE on HOST via SMB.
+
+This command uses `smbclient-program' to connect to HOST."
(interactive
(list
(read-from-minibuffer
(pop-to-buffer buf)))
(defun smbclient-list-shares (host)
- "List services on HOST."
+ "List services on HOST.
+This command uses `smbclient-program' to connect to HOST."
(interactive
(list
(read-from-minibuffer
;; Finger protocol
;;;###autoload
(defun finger (user host)
- "Finger USER on HOST."
+ "Finger USER on HOST.
+This command uses `finger-X.500-host-regexps'
+and `network-connection-service-alist', which see."
;; One of those great interactive statements that's actually
;; longer than the function call! The idea is that if the user
;; uses a string like "pbreton@cs.umb.edu", we won't ask for the
(defun whois (arg search-string)
"Send SEARCH-STRING to server defined by the `whois-server-name' variable.
If `whois-guess-server' is non-nil, then try to deduce the correct server
-from SEARCH-STRING. With argument, prompt for whois server."
+from SEARCH-STRING. With argument, prompt for whois server.
+The port is deduced from `network-connection-service-alist'."
(interactive "P\nsWhois: ")
(let* ((whois-apropos-host (if whois-guess-server
(rassoc (whois-get-tld search-string)
;;;###autoload
(defun network-connection-to-service (host service)
- "Open a network connection to SERVICE on HOST."
+ "Open a network connection to SERVICE on HOST.
+This command uses `network-connection-service-alist', which see."
(interactive
(list
(read-from-minibuffer "Host: " (net-utils-machine-at-point))
(network-service-connection host (number-to-string port)))
(defun network-service-connection (host service)
- "Open a network connection to SERVICE on HOST."
+ "Open a network connection to SERVICE on HOST.
+The port to use is determined from `network-connection-service-alist'."
(let* ((process-name (concat "Network Connection [" host " " service "]"))
(portnum (string-to-number service))
(buf (get-buffer-create (concat "*" process-name "*"))))
(defvar comint-input-ring)
(defun network-connection-reconnect ()
- "Reconnect a network connection, preserving the old input ring."
+ "Reconnect a network connection, preserving the old input ring.
+This command uses `network-connection-service-alist', which see."
(interactive)
(let ((proc (get-buffer-process (current-buffer)))
(old-comint-input-ring comint-input-ring)