From: Daniel P. <da...@ri...> - 2001-10-18 01:45:59
|
On Wed, 17 Oct 2001, Kai Gro=DFjohann wrote: > Maybe it would be a good idea to test whether tramp-encoding-command > and tramp-decoding-command actually work, before trying to use them. >=20 > But I don't know what would be a good strategy for doing this? (defun tramp-test-base64-encoder-works () "Verify the remote BASE64 encoder..." (let* ((test-text "this is a really nifty test") (result-text (base64-encode-string test-text))) (tramp-run-me-remotely-in-a-shell (format "echo '%s' | my-base64-decoder" test-text) (tramp-wait-for-output-somehow) (unless (search-forward result-text nil t nil tramp-result-buffer) (error "It looks like your base64 encoder doesn't work..."))))) Season to taste with encoding through temporary files and the like. Daniel --=20 The secret of happiness is this: Let your interests be as wide as possible, and let your reactions to the things and persons that interest you be as far as possible friendly rather than hostile.=20 -- Bertrand Russell |