Date: Wed, 12 Jan 2011 14:17:24 +0000 From: four.harrisons@googlemail.com To: freebsd-questions@freebsd.org Subject: problem with shell script Message-ID: <4d2ef151.4310df0a.25b7.0199@mx.google.com>
next in thread | raw e-mail | index | archive | help
Hello=0D=0A=0D=0AI'm in trouble with a simple shell script that give=0D=0A= erroneous value when running ...=0D=0A=0D=0AIf I run commands interactive= ly everything runs well=0D=0A=0D=0A > ps ax | grep slapd | grep -v grep |= wc -l=0D=0A 1=0D=0A=0D=0AIf I run in the following shell script :=0D= =0A=0D=0A#!/bin/sh=0D=0ASD=3D0=0D=0ASD=3D`ps -ax | grep slapd | grep -v g= rep | wc -l`=0D=0Aecho $SD=0D=0A=0D=0Athe result is 3 !!!=0D=0A=0D=0A=0D=0A= Any info welcome !=0D=0A=0D=0A___________________________________________= ____=0D=0Afreebsd-questions@freebsd.org mailing list=0D=0Ahttp://lists.fr= eebsd.org/mailman/listinfo/freebsd-questions=0D=0ATo unsubscribe, send an= y mail to "freebsd-questions-unsubscribe@freebsd.org"=0D=0A
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4d2ef151.4310df0a.25b7.0199>