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

Re: Script to email details not working in cron



Sven Hartge wrote:
> You don't need the manually invoke /bin/bash if you just add
> "#!/bin/bash" as the first line of your shell script, which Don already
> pointed out:
> >> 3) It may not be executable.

Yes.  Make sure it is executable.

  chmod a+x /home/user/bin/email-script

Bob

P.S. Personally I stick with the POSIX standard #!/bin/sh instead of
#!/bin/bash.

Attachment: signature.asc
Description: Digital signature


Reply to: