Originally Posted by samkorok
I have server but it all hardening.i can't install mailx and sendmail. How could i do script to automatic send email to my mailbox using crontab? any idea guy.
Please read the "How to ask a smart question" and "Question Guidelines" link in my posting signature. You aren't providing any details that would help us, help you.
Short answer: if you can't install any packages, then you must not be the systems administrator...so ASK them to install what you need and/or ask them for suggestions on how to accomplish what you're after.
Longer answer: You say "mailbox"...if you mean local mail on the Linux server itself, you don't need mailx or sendmail configured; local mail delivery will take place. You can also compile and run mailx from your home directory, but be aware that if your administrator hasn't allowed outgoing mail connections, the software won't work.