/bin/sh: 2: command not found (in /var/spool/mail/root)

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

/bin/sh: 2: command not found (in /var/spool/mail/root)

Postby AyukRolandAgbor » Wed Dec 11, 2019 8:47 am

Hello!

I have vicidial installed running for some days now. When i logged into my command line, i was notified that i have a mail in /var/spool/mail/root. When i checked it i saw this /bin/sh: 2: command not found.

I don't know how it affects the system (VICIDIAL). Of what help can it to my system if it doesn't show that error again?

Opinions are highly appreciated!
AyukRolandAgbor
 
Posts: 16
Joined: Fri Dec 06, 2019 9:41 am

Re: /bin/sh: 2: command not found (in /var/spool/mail/root)

Postby ambiorixg12 » Wed Dec 11, 2019 12:15 pm

You can read those messages installing mail, or delete all them with the command echo > /var/spool/mail/root
ambiorixg12
 
Posts: 453
Joined: Tue Sep 17, 2013 10:35 pm

Re: /bin/sh: 2: command not found (in /var/spool/mail/root)

Postby AyukRolandAgbor » Sat Dec 14, 2019 9:47 am

Yeah, Thank you for that responds. I understand you. I used the command, it worked.
What am asking is that, when i see messages like that should ignore them or find a way to take them down???
Thank you!!
AyukRolandAgbor
 
Posts: 16
Joined: Fri Dec 06, 2019 9:41 am

Re: /bin/sh: 2: command not found (in /var/spool/mail/root)

Postby williamconley » Wed Dec 18, 2019 11:26 am

1) Welcome to the Party! 8-)

2) As you are obviously new here, I have some suggestions to help us all help you:

When you post, please post your entire configuration including (but not limited to) your installation method (7.X.X?) and vicidial version with build (VERSION: 2.X-XXXx ... BUILD: #####-####).

This IS a requirement for posting along with reading the stickies (at the top of each forum) and the manager's manual (available on EFLO.net, both free and paid versions)

You should also post: Asterisk version, telephony hardware (model number is helpful here), cluster information if you have one, and whether any other software is installed in the box. If your installation method is "manual/from scratch" you must post your operating system with version (and the .iso version from which you installed your original operating system) plus a link to the installation instructions you used. If your installation is "Hosted" list the site name of the host.

If this is a "Cloud" or "Virtual" server, please note the technology involved along with the version of that techology (ie: VMware Server Version 2.0.2). If it is not, merely stating the Motherboard model # and CPU would be helpful.

Similar to This:

Vicibox X.X from .iso | Vicidial X.X.X-XXX Build XXXXXX-XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel DG35EC | Core2Quad Q6600

3)
AyukRolandAgbor wrote:Yeah, Thank you for that responds. I understand you. I used the command, it worked.
What am asking is that, when i see messages like that should ignore them or find a way to take them down???
Thank you!!


you should find the source of the error. it appears you have a process in crontab or somewhere that tries to execute "2". likely a fat-fingered extra line somewhere.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: No registered users and 122 guests