General :: How To Send EOF To Wall Cmd In Script?
May 21, 2010How do you generate the end of file character so that you can send it to a script.
View 4 RepliesHow do you generate the end of file character so that you can send it to a script.
View 4 RepliesHow to send color message to all users with wall.
View 1 Replies View Relatedin the middle of script, i need to send the output of (send command on line 8) to a file
#!/usr/bin/expect
spawn telnet 172.20.64.133
expect "ENTER USERNAM <"
[cod]....
i treid the below on line 8 :
1- send "show command;
" > logfile.txt : gives an error extra character after the "
2- logsave logfile.txt 'send "show command;
" ': error invalid command
3- i simply tried to send the output of the whole script to file logsave /home/logfile ./script : seems that logsave work under root only
4- ./script > logfile : the problem with this is that the output of echo or (read "enter your id") command will not be displayed on the screen (actually nothing will be displayed, i have to open the log file to see the output). is there any way to save the log of the "send" ? or to save the log of the complete script without hiding the output on the screen?
Are there any other options for a fire wall gui for opensuse where you can see exactly what is going on with the firewall? I am finding the yast firewall gui in opensuse 11.4 to be extremely limited. I am not proficient in ip tables so looking for something that would give better control over the firewall rules for a beginner.
View 1 Replies View Relatedi have enbled desktop wall in compiz. problem is, it seems that i only have two viewports available (left and right), whereas i see viewports way more than two in screenshots and videos videos. how do i go about this?
View 1 Replies View RelatedI'm in the middle of creating a new web page & want to have a certain Facebook wall show up on one of the pages_[ Is this possible & if sooo how can I accomplish ]
View 2 Replies View Relatedis there a way to get multiple background wallpapers in unity, if so how
View 3 Replies View RelatedIs there a way to monitor a wall outlet with nagios.I want to check if we got some power out of a wall outlet.This is to check whether we are running on the electricity network or on our diesel power generator.The wall outlet is connected only to the electricity network, so if there is no more power coming out of the outlet that mean that we are running on the diesel power generator.
View 2 Replies View RelatedI've tried and tried to get crontab working. its just a simple script to change my wall paper every 15 minutes.
i do
crontab -u Josh -e
*/15 * * * * /home/Josh/.splatter/splatter
[code]...
It's an acer Aspire One D257-13478.Download the correct firmware and tar it into the appropriate dirctories and I'm still running a wall.I don't know how to get the b43/b43legacy in the lsmod list.I've also tried use the rfkill command and using yum to install it gives me this response:"cannot retrieve repository metadata"
I also went into the F2 setup menu and couldn't find anything to alter the bios wireless.After installing Fedora 15 almost all the drivers remained intact including enumerators for usb mice.I don't know what's going on.
I can't access the web interface for cups to install a printer on Ubuntu server 10.4 tell me how to get it working right or i'll just throw the computer out the window and go with windows server, a much better, user-friendly product, like all Microsoft creations
View 1 Replies View RelatedWith wall command, we can just broadcast a message to all the login users in only system, how to broadcast a message to all the systems which all are in same network
View 4 Replies View RelatedI've had 8.04 for almost a year & a half now, but the one thing that seems to confuse me after getting the rest of ubuntu is how to get wifi working. Before you say "read XXX FAQ, wiki, page", etc, I've read so many and despite understanding every normal thing about ubuntu, and all the customization I have, I haven't seen a single, up-to-date guide for making sense of wifi.
Here's what I know:
My wireless card is Network controller: Intel Corporation PRO/Wireless 2915ABG Network Connection (rev 05), supported in linux only by using a windows driver, ipw2200, which I do have running and installed somehow.
Code:
shogun@Valhalla:~$ sudo lsmod | grep ipw2200
[sudo] password for shogun:
ipw2200 146248 0
ieee80211 35528 1 ipw2200
I also realized I needed ndiswrapper, so I installed that. Beyond this, I'll just admit it- I'm very confused. I have always had a working connection over ethernet cable plugged in, but I really need wireless lately, and found an old Netgear WGR614v7 G band wireless rounter in my basement, hooked it up, and have a wired connection from it right now.
So how do I set-up/get my wireless working with all this thus far? How do I set up the router's network through Ubuntu as well, so I can create a named network to connect to? I'm reading every guide I can, and am just coming up more confused.
regarding the below error :
o-strict-aliasing -MD -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs miniglx.c -o miniglx.o
In file included from miniglx.c:9:
../../include/GL/glx.h:296: warning: function declaration isnt a prototype
miniglx.c:222: warning: no previous prototype for glXGetProcAddressARB cc -c -I. -I.. -I../../include -I/usr/include/directfb -D_REENTRANT -D_HAVE_FULL_GL=1 -march=i686 -O3 -fno-strict-aliasing -MD -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs miniglx_events.c -o miniglx_events.o
[Code]...
I am trying to get the time of my wall clock from my wireless driver in form of "hh:mm:ss", so I used the function get_rtc_time() inside my driver to get that and it was done. My question: Is it possible to increase the accuracy of this function, for example if I want to get the milliseconds and the Microseconds in additional to the first output? If not, Is there any other function can do that?
View 3 Replies View RelatedI'm writing a script that will send an alert email given certain conditions. I have the impression that sendmail is what I need to do that. I just don't know how to use sendmail at all. I assume I have to set it up like a typical mail client so that it has a mail server to log into to send from.
I've looked through the man pages, but I can't find anything in plain English there on how to set it up, or how to use it once it is set up.
We are working on a project to create a display wall of 8 monitors arranged as 2 high by 4 wide. Each monitor is connected to a single machine and all machines are networked with a master machine with its own, seperate monitor.
Our goal is to get the 8 machines to share a single desktop, with the master machine acting as the server. We have looked at using Xinerama or NMM, but we are unsure about how to get started configuring the multi-machine, multi-head display.
made a simple script called "msg" to make it simpler to use the "wall" command, but it is giving me some issues. The problem is more cosmetic than performance, but it's annoying.OS:Ubuntu 10.10 Text Editor: Nano (Probably not important, but hey...)Here's what I got:
Code:
#!/bin/bash
# Changes color to yellow
[code]...
pls delete this post if I should not do this as it is included in [URL]..How do I recover from the 99 error when I start my system? I can only get to my Slackware by booting into it from the Slackware DVD.I have re-run lilo but I keep getting the 99 error on start up.
View 10 Replies View RelatedI am trying to dual boot Windows 7 and Ubuntu, I have shrunk on of my partitions in Windows and now have an "unallocated" 25Gb partition which I wish to install Ubuntu onto.I have used unetbootin to put Ubuntu onto a USB stick and can boot it and get to the Install screen no probs! I am having trouble allocating partitions though.I get to the point where I need to partition my free space (Page 2 of tutorial), and select "Specify Partitions Manually (Advanced)".
I then go to the next step and I get the "Allocate Drive Space" screen. I am told that I have "free space - 26844Mb", I have selected this, and pressed the Add button, then go to the next screen, and set up the /boot partition as described in the tutorial. This works ok.When I go back to the "Allocate drive space" screen, I am told that the space is now "unusable" and has a size of 26344Mb.I cannot get any further than this as it will not let me do anything except "revert"?
How long normaly keep the mail server send mails on the outbox queue and try to send? What about hotmail, gmx and gmail mail server?
View 1 Replies View RelatedI 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 not able to configure sntp server at my linux distribution.
Here are the details. Defined the mail server here.
Code:
/etc/mail/sendmail.mc
dnl define(`SMART_HOST', `XXX.XX.XX.XXX')dnl
ran this command.
[Code]...
I have a minecraft server running as a daemon. When you run it normally (not as a daemon), you can type commands into the console. How can you get to the console so I can send it commands while it's running as a daemon?
View 1 Replies View RelatedI use CentOS 5.3 and I am trying to send a simple email through mutt.My command is:echo "test" | mutt -s "test email" myemail addressI have no errors displayed but the email never goes out of the machine. Also the /var/log/maillog is empty.I can see the queued email with:sendmail -bpSo emails never go out.This PC is connected to a network which the gateway is another Linux machine which is configured to be the default gateway in my /etc/resolv.conf as nameserver.
View 2 Replies View RelatedI'm trying to get some insight on how to move forward. I have a bit of a problem. I am just starting out in unbuntu and I have no experience working with 2 os on my computer (coming from windows). I have a lot of files (music, pictures, movies) in windows, but I want to use them on unbuntu. Is there a way for me to have both os access those files, or better yet, is there a way to send all my files to unbuntu, so I can start deleting all my stuff in windows?At the moment, I'm planning to burn all my files to dvds (in windows), then just drop them off in unbuntu, but I'd love it if there was a way which didn't involve me burning tons of dvds...Oh yea, and programs too... can I transfer them, or do I need to just reinstall them on unbuntu (like stepmania, guildwars, dvd shrink, kmplayer, etc
View 2 Replies View RelatedI have gpg (not sure how to check the version) installed and running nicely. I am attempting to publicize my public RSA key to various key servers, but even tho everything seems to work nicely in actuality it does not.
Code:
When I check that particular (and others after similar attempts) keyserver for my e-mail address it only finds my old, revoked key. How can I get publishing my RSA key from the command line to work in actuality?
I use gmail for all of my emailing needs but stumbled upon linux counter at counter.li.org. Now I registered on the site and downloaded the machine-update script from the site. So I ran it and it collected the required data. But when I run ./machine-update -m as they have told, I guess no mail gets sent as I have to configure the mail program. How do I configure it so that it sends mail from my gmail address using stmp?
View 1 Replies View RelatedI am having a problem with sendmail. Using a php script the process that 30 seconds to send. I have googled the symptoms and have changed sendmail.cf ==> Timeout.ident=0 and configured /etc/hosts properly. I'm using Fedora 11 and 12, same issue.
View 7 Replies View Relatedso I'm really new to using Linux, and I searched the forums, but most people seem to have trouble sending mail, not receiving it. When I send mail from the CLI, it gets delivered fine (from travis@travishoward.net) But when I try to reply or mail to the server, I get this message back:
Code:
----- The following addresses had permanent fatal errors ----- <travis@travishoward.net>
(reason: 554 5.7.1 <travis@travishoward.net>: Relay access denied)
[code]...