General :: Php Cannot Invoke The Msmtp
Mar 7, 2011I want to use php for mailing on linux.But when I do it with"$a=`msmtp niubl967@gmail.com < /u1/ftp/mail.txt &`",it does not work.The mail.txt's contents are following:
Subject:test
I want to use php for mailing on linux.But when I do it with"$a=`msmtp niubl967@gmail.com < /u1/ftp/mail.txt &`",it does not work.The mail.txt's contents are following:
Subject:test
Whenever I got to type the command below:
#iwconfig eth1 essid mynetwork key xxxxxxxx
#dhclient eth1
to use this command, i have to be in su or sudo. Is there a way I could allow all users to invoke these commands without the root password?? I try to make a file (wireless.sh), which consists the commands above, in /usr/local/bin/. Change the mode to 755 (chmod 755 wireless.sh) however, it does not allow me to use this also.
I am not good at writing udev rules. I am using RHEL 4.7, I would like to invoke a file install.sh which is in CDROM as soon as the CDROM is inserted
View 2 Replies View RelatedI just wonder the distinction calling the function between $(one_function) and one_function in bash shell script.
When I set the variable PS1 in ~/.bashrc, I can't invoke the function by one_func
ex:
export PS1="
[e[31m] $(one_func) # it works
export PS1="
[e[31m] one_func # it doesn't work
Does anyone know how to configure msmtp to sed mails via gmail?
In mandriva it is done by modifying a file :
etc/msmtprc.conf
where you state your gmail account details.
Currently if I try to sent an email with my recently installed msmtp, I get the following message:
msmtp: account default not found: no configuration file available
This version of mutt seems to be broken ... at least as far as working with motion and msmtp to automatically transmit detected video images to my e-mail account.
I don't see any errors, mutt simply doesn't transmit the data via msmtp as it should.
I switched back to the version of Mutt in Slackware 13.1 and the automatic transmission of video detected by motion and transmitted by mutt via msmtp started working properly.
I'm running 11.04 desktop 64 bit and have smartmontools and mdadm set to send automated test emails at bootup (I have a RAID5 setup).I'm using msmtp with a gmail account. When I'm logged in, I can manually send test emails with both smartmontools and mdadm; neither will send me an email at bootup even though they are set to do so. The msmtp log at bootup has a smtp.gmail.com exitcode=EX_NOHOST.why it can't find the smtp server at bootup but has no problem once I'm logged in and test it manually? Is there some dependency that isn't loading in time at bootup???
View 1 Replies View RelatedI found this page to have the configuration of : but I have to adapt and get always errors. [URL] What are the minimum configurations so that one can do : echo test | mutt me and it sends it via msmtp and mutt one can read his emails using hte imap enabled on the account?
View 1 Replies View Relatedsetting up the Xterminal ( xmanager ) application on Linux. I've installed Xterminal-1.0.7-1.i386.rpm on RHEL 4.0.May i know how could i invoke the installed application? What commands should i use?
View 13 Replies View RelatedI have to execute certain commands (like shutdown Tomcat) on several servers so I'm using a loop and ssh. I put the server's IP on a CSV file which I parse, execute the commands for each line and send the output to a file. The problem is that after processing one line the program stops execution. I wonder if someone could lend me a hand with this, I'm new in bash scripting and I ran out of ideas.
The CSV (servers.csv) file looks like this:
Code:
192.168.254.5:Server 1
192.168.254.6:Server 2
...
And the script looks like this:
Code:
#!/bin/bash
while IFS=: read ip name
do
sshpass -p "pass" ssh -o "StrictHostKeyChecking no" root@"$ip" 'sh <CATALINA_BASE>/bin/shutdown.sh' >> output.log
done < servers.csv
Adobe Air are not able to invoke the password dialog for installing apps in opensuse11.3 (i686) .. it waits for root password confirmation however there is no dialog window to input the password to. I've tried installing adobe air apps as both su and normal user, no mather what I do it's not envoking the password dialog..
I've also tried to install the gnome su library to see if it helps any but it don't...
I have also tried to reinstall Adobe Air using both the rpm installer and the binary installer from [URL], the binary installer won't even install.
I can get the use of the AIR apps I need ?
From AIR installation log [Adobe AIR Application Installer:12808][INFO] Waiting for user confirmation
Edit: By the way, I've also tried the normal troubleshooting such as removing the crypt cataloge, removing cache and etc..
My main problem right now is doing floating point arithmetic within a bash script, with variables.Right now I have a folder called "myExamples" with a script called "run_example" that runs with no issues.I plan to(1) create many folders inside [myExamples], that are named [example10] [example11]...each containing an identical copy of (run_example),(2) modify Line 172 of each copy of (run_example)...in one copy, it would be 3.00, the next copy would have 3.05, etc. (This part doesn't work!)How can I use the available calculator bc code to do floating point operationsMy code is below -
#!/bin/sh
# run from directory where this script is
cd `echo $0 | sed 's/(.*)/.*/1/'` # extract pathname
[code]....
I'm working on an application which generates random shapes when clicking on a window. I designed the window using Motif. I want to invoke the ButtonPress Event .
View 1 Replies View RelatedI have created a glade file which so far have two regions in it:
1) On the right division is a toggle button which calls a C script when enabled.
2) I have a drawing area, in which I would like to plot a point (X-Y scatter plot). The plot should be generated dynamically using a C script. I am not sure how the integration between the two is possible for a drawing area.
In glade what properties of drawing area should I set? eg.expose event, realize etc. I was thinking of using cairo for generating the plot.
I am trying to import variable values from a profile file to a perl program.
I am using the below command for doing it.
Quote:
system (". /opt/bbfb/bin/setbbfbenv $codeset");
the above command does make variable values available to the running perl program..
Can some one help me on this front..
I am running usb version of lucid 10.04.2, with many apt-get installs. Shortly after running awhile, programs will not run, I get either an "input/output error" or "Bus error (core dumped)". (Examples of programs rendered inoperable are top, df, file)
I've read something about a memory leak in Lucid, but in my case, the computer doesnt slow down, things just stop working. Is this a known problem with Lucid? I'm thinking maybe one of my apt-get installs corrupted something. Is this a known problem that has a software update available?
Here is the output of "top" which fortunately currently DOES work, while other progs don't. (the memory usage stays constantly in that 1.5 GB range)
Mem: 3056772k total, 1554952k used, 1501820k free, 173004k buffers
Swap: 0k total, 0k used, 0k free, 1081808k cached
I'm trying to do a little bit of setup on our new server and could use a hand.I'm working on creating a simple display script that our users can SSH in and invoke, here is what I'm attempting to do.
Requirements.
1. Must run X over ssh on Mac OS X 10.5 or greater
2. Must work in the office, or on the road
Implementation:
1. Set up the system to auth against LDAP (Open Directory)
2. Create a script on the PATH that checks which displays are available, and launches Xephyr for the first available one.
3. Create a client script that performs the SSH and Xephyr command so that users can simply click the script to start an X session.
I have 1 set up, but I'm having issues with 2 and hence 3. For instance, I can start XNest with the following commands.Start my SSH session
ssh ninet@10.0.1.50 -X
Load XNest
Xnest :1 -ac -geometry 1024x768 -once -query localhost
If a process becomes unresponsive in WINDOWS then we press "alt+ctrl+del" to invoke the task manager & then terminate the process.Is there any similar way to invoke the Linux Terminal so that we can end a process by the 'kill' command when it becomes unresponsive?
View 2 Replies View RelatedI have created a script which asks the user a few questions and then it configures the wireless network. I'd like to run it somehow while Ubuntu still boots by pressing a key for example. Let's say, while booting, when it comes to the script I made, it will sleep for a few seconds giving the user the oportunity to press the pre-defined key (eg: spacebar). Once pressed, then the script will load.
View 7 Replies View RelatedWhen I try to invoke 'source' command from within a shell script, namely, myscript.sh, I get the following error message code...
View 1 Replies View RelatedI have a very strange problem. My computer is unable to boot from any hard disk but is able to boot from any CD or DVD. I have double-checked the BIOS settings and I am unable to figure out why is this happening. I have noticed that the Windows installer boots from the CD only if one presses a key when the message "Pressany key to boot from CD..." is displayed on the screen, otherwise it boots from the first hard disk.I have a triple boot system with Windows 7 (64-bit), Ubuntu 10.10 (64-bit), and Fedora 14 (64-bit). I have a dedicated GRUB2 partion on one of my disks. What I want is a boot-loader (any would do) on a CD/DVD/USB drive to chain load the GRUB2 present on my hard disk, without a delay, that is, without showing any message, menu, warning, etc. So, is there a way to do that?
View 6 Replies View RelatedI am able to invoke 'skype' using the following command in a Terminal window. < export XLIB_SKIP_ARGB_VISUALS=1 && LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so && skype & >. I want to be able to enter it through the Gnome Application interface. I right click on the skype icon and went to properties and added the above code. When I click the icon I get the following error message set out on the attachment? properly enter the commands within the application Command: line?
View 2 Replies View RelatedMy computer is connected to the college lan where almost all machines are some variant of Windows OS. If i use Places > Network, while windows network is displayed, mostly it returns unable to mount shares, my workaround for this problem is I use some tool like nbtscan to see which hosts are up and then use network > Connect to Server > windows share and type in the ip address, this mounts the windows share even though Places> network doesn't display such hosts. My question is there some command line way where I can invoke nautilus to mount the windows share, ie the same job connect to server > windows share does? And is there some application like say lan surfer for windows which lists all the folders shared by a windows client.
View 3 Replies View RelatedCompiz often keels over and then I have to restart the comptuer because even though I made a special script to restart it, I am unable to invoke it as I cannot change active window.However, since Metacity restarts itself, so should compiz. The question is - how?
View 5 Replies View RelatedI am running a Java application on the command line bash terminal under Mint Debian. I have JDK1.6.0_22 installed 64-bit, and the OS is 64-bit too. I have a few JAR files in the directory and a few native LWJGL libraries. When I run the application using the command line, all works fine.
Lets assume my directory where the files are is called /home/riz/MyGame. I change to that directory and this is the command I use code...
My main problem right now is doing floating point arithmetic within a bash script, with variables.Right now I have a folder called "myExamples" with a script called "run_example" that runs with no issues.I plan to(1) create many folders inside [myExamples], that are named [example10] [example11]...each containing an identical copy of (run_example),(2) modify Line 172 of each copy of (run_example)...in one copy, it would be 3.00, the next copy would have 3.05, etc. (This part doesn't work!)How can use the available calculator bc code to do floating point operations?My code is below -
#!/bin/sh
# run from directory where this script is
cd `echo $0 | sed 's/(.*)/.*/1/'` # extract pathname
[code]...
My Ubuntu system is occasionally becoming very sluggish. I'm running many things simultaneously and it's very difficult to tell which program is the culprit.
I suspect that the sluggishness is due to disk activity since the CPU usage is consistently under 50% on each of the 4 cores of the CPU, and over 30% of the 6GB of RAM are free.
Is there a tool that can show me in real time the number of disk IO operations per second and the amount of data read/written per second? Can all this info be broken down and displayed per process?
I want to write a shell script, so that at 9AM every morning a general will be sent automatically to my network users E-Mail ID. My users are as follows: akhtaruzzaman@a[URL], ariful.[URL] etc.
Below is my little effort:
# !/bin/bash
userlist=`cut -f 1 -d : /etc/passwd`
mail -s "mailbackup" << END
keep mailbackup in another drive daily for security purpose
I'm using my Linux (SLES 10) server as a File Server at this point. I need to set File Permissions to nested folders differently to different groups. For example:
homesharedengineering* should be read only for groupA
homesharedengineeringadmin should be read & write for groupB Plus read only for groupA
homesharedengineeringautocad should be read & write for groupC Plus read only for groupA
I've been using Webmin and Putty to set permissions but Putty only allows me the Default Group, it won't allow me to set several groups on the same directory. Webmin seems to allow me to add multiple groups (Webmin --> Others --> File Manager --> Info & ACL tab will provide extended abilities) but when I add multiple groups, they don't seem to take effect? I'm wondering if my setup at the 'Share' level or at the hierarchy of my folder structure (unix based) needs to be set specifically?
I have Windows 7 on my Dell Xps laptop, and I want to install Ubuntu or Fedora as a dual-boot. Will that cause my system to slow down?
View 2 Replies View Related