General :: Echo Password To SU - PPPD Call Idea

Feb 25, 2011

I have to run "pppd call idea" command from root shell every time to connect to internet from mobile. Now I want a script so that I just run it to connect. Something like :

#!/bin/sh
echo "password" --stdin | su -
pppd call idea

But its showing error that "standard in must be a tty". Why is this. Using CentOS 5.5

View 2 Replies


ADVERTISEMENT

Ubuntu :: C++ - Use System To Call Echo And Pass Variables?

Sep 7, 2010

I'm trying to use system to call echo and pass variables to it. That was a success. The problem is the variables inside the while-loop i wrote cannot be manipulated. what I'm doing wrong here? here's the code:

Code:
#include <iostream>
#include <stdlib.h>
#include <string>
#include <sstream>

[Code]....

View 7 Replies View Related

Software :: What Is Different From Sending Call Command Within Minicom 2.5 And Echo It?

Jun 11, 2011

I have a router with linux firmware and attached to it a USB modem with which I can do both data and voice.Any other command send through echo method works ok. I was able to send SMS, edit phonebook and many many other stuff, but not make a call.So what is different from sending the call command within Minicom 2.5 and echo it?

View 1 Replies View Related

General :: $echo Cat Vs $cat Echo / Difference Between Them?

Dec 16, 2010

What is the difference between

$echo cat
$cat echo

View 1 Replies View Related

Ubuntu :: Echo Password When Entering In Rar?

Dec 28, 2010

When I use rar e to extract a rar file, the request for entry of the password always says password will not be echoed. For longer passwords, this is difficult, since a single mistyped key will result in an error.

Does anyone know how I can use the rar command to extract and have the password echoed (appear on the screen as I type it)?

View 2 Replies View Related

OpenSUSE Install :: Remove 11.2 Kde Login Password Echo?

Jul 30, 2010

I am having trouble finding the option to change this setting in opensuse 11.2. I type in username: "somebody" password: **** How do I get the password not to echo the stars and show nothing when it is entered? In OpenSuSE 10.2 I used to go to Personal Settings > Security & Privacy > Password & User Account but this menu does not exist anymore.

View 5 Replies View Related

General :: Use Idea Net Sitter Usb Modem IN OS ?

May 8, 2010

HOU TO USE IDEA NET SETTER usb Modem IN LINUX OS rhel 5

View 2 Replies View Related

General :: Pppd Disconnects From 3G, Doesn't Reconnect, W/ Persist Set?

May 23, 2010

I am trying to configure pppd to connect to a 3G network (Sprint, in this case) and then stay connected, reconnecting automatically if the remote connection is terminated. I have enabled the persist option. My configuration file is as follows:

hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/cellular"

[code]....

View 1 Replies View Related

Software :: Script That Call A Java Program That Call A System Command?

Nov 29, 2010

In practice I have a script that call a java program that call a linux system command. The script if I run it, from a shell functions well,so it is not a java problem. The problem come out when i put this script in a crontab schedulation. The result in this case is that java do not execute the system command. I think it depends on crontab

View 4 Replies View Related

Ubuntu :: Idea For A Useful Applet / Utility

Sep 18, 2010

i constantly find myself opening and closing terminals (which, in turn, i lose output on the terminal window and what not..). i use the terminal screenlet app and i really enjoy that, but sometimes find it cumbersome to have to constantly minimize the current window to go to my desktop with the built in terminal screenlet. i had an idea for a panel applet that will do the following: it will act like the drawer applet, but when you click the button, a terminal window will un-roll and pop up with the past output from previous commands/work. you then can click the button again and have it roll back into the panel to wait for the next use, etc. has anything like this been done already for terminals? also, if not for terminals, has anything like this been done for any application? i ask because if i can get the previous source code, it will be much easier to modify it for terminal usage. (im a grad student and don't have much time to devote to a completely new formulation of code haha).

View 3 Replies View Related

Fedora :: Really Bad Idea To Multi-Tasking During Update?

Oct 18, 2009

It seem like a good idea to leave the computer along when it is updating. Because if for some reason I still using the computer, it might interrupt the updating process.(e.g. update manager freeze, or corrupt some file) I remember I run into this problem quite a few times back in FC6, but did not have problem on F10 and F11(merging from preview?) until the day before yesterday. I was tried to downloading a relative large file updating system and running 2 folding at home in the terminal at the same time (ram usage at the time was around 300+/512). Then disaster strike. The hard drive spin like crazy with large cpu I/O pending(or wait time?). The problem reoccur during the boot up and login after the update.

And this is the message continue recorded in the (F11) log:
Oct 17 11:52:22 localhost kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
Oct 17 11:52:22 localhost kernel: ata1.00: BMDMA stat 0x24
Oct 17 11:52:22 localhost kernel: ata1.00: cmd c8/00:08:22:9c:57/00:00:00:00:00/e6 tag 0 dma 4096 in
Oct 17 11:52:22 localhost kernel: res 51/40:07:23:9c:57/00:00:00:00:00/e6 Emask 0x9 (media error)
Oct 17 11:52:22 localhost kernel: ata1.00: status: { DRDY ERR }
Oct 17 11:52:22 localhost kernel: ata1.00: error: { UNC }
Oct 17 11:52:22 localhost kernel: ata1.00: configured for UDMA/100
Oct 17 11:52:22 localhost kernel: ata1: EH complete

I saw this message in F10 before, and had been told it might have something to do with the kernel. But I suspect the problem is source from corrupted file rather than kernel this time around, since back then the problem will go away after a successful file system check. Unfortunately, it does not work this time. So I have no choice to reinstall the system. Therefore, I am thinking if it is really a bad ideal to let the computer muti-tasking during the update? Because it may rise the possibility of update failure or system files corruption. I really do not like LVM, is there a way to get around it? The installer from live usb does not allow me to customize partition during the installing....

View 1 Replies View Related

Ubuntu One :: 8.04 - Evolution Mail Sync Idea

May 24, 2010

I am wondering if I set the /home/user/.evolution folder to synchronise with ubuntu one on my eee, and then when I update the desktop remove the /.evolution folder and replace it with the one synchronised with ubuntu one would all my setting and messages be copied as well or not? And no I can use Imap as I use that dreaded thing known as hotmail! My desktop is running 8.04 but is due an upgrade soon so I can test my idea out!

View 8 Replies View Related

General :: Echo An '-n' Without A New Line?

Oct 19, 2010

how to echo an '-n' without a new line?

View 8 Replies View Related

General :: How To Echo Redirected Stdin

Sep 26, 2010

I execute an application from a script file and redirect stdin to it from here-doc like this:

my_cli << HERE_DOC
enable
configure
10
exit
exit
HERE_DOC

This works as expected, but I don't see neither the input nor the app output. The application is an interactive prompt written in C. When I interact manually with it, I see the prompt itself and responses to my input, but when I execute the aforementioned script I see nothing. I would like it to print the input and the output as if a real user was typing. Do you know how to achieve that?

View 3 Replies View Related

General :: How To Echo The File To Stdout

Sep 26, 2010

I have a process which logs output to log.txt. If I want to see the process's status in real-time, is there a way to echo that output to stdout instead of opening the log in a text editor and constantly reloading?

View 3 Replies View Related

General :: What Does Echo $$ Give As Output

Nov 28, 2010

What does echo $$ give as output?

View 3 Replies View Related

General :: Echo Function In .bashrc?

Feb 25, 2010

I'd like a function in my .bashrc file that would allow me to pass text to it and echo the text to a specified file. I know it's simple as "echo 'text' >> file," but ideally, I would want to alias the function so I execute something like:

Code:
user~ $ write 'this is a test' with "write" being the function, and 'this is a test' being echoed to the file. I hope I explained that well enough.

View 3 Replies View Related

Ubuntu Multimedia :: Optimus Workaround Idea For Playing Through HDMI

May 14, 2011

I've been waiting for nVidia for too long or any genius for me to get things working about my ASUS N53JF and this Optimus tech on it.My brother has a FULL HD 1080P waiting for me Is there a way I could get HDMI through his tv without paying for another laptop or nettop or media player.I saved the original HD image with Windows 7 that came with it but oh my. i don't want to come back to Windows.I've been in Ubuntu since Lucid Lynx (that was on my Sony VAIO VGN-AW120D, now waiting to be repared - no money for the reparation broke).

I thought that I would insert the Windows 7 HD image each time I go visit my brother but do any of you have other solutions .. workaround? I mean stable solution, i've heard that Optimus is no where near what Windows 7 can do with this technology Optimus workaround idea for playing through HDMI.

View 2 Replies View Related

General :: Echo Text With New Line In Bash?

Jun 21, 2010

I would like to append text to a file. so i wrote in bashecho text >> file.confHowever it doesnt leave a new line. So i can only do this once. How do i add a new line?

View 2 Replies View Related

General :: Use The -ne Flag For Echo In A Shell Script?

Jun 21, 2011

I'm trying to create a shell script to take an argument and use it to name a terminal tab. So if the script's name is tabnm, tabnm "test" should rename the current tab "test"

This is my code:

#!/bin/sh
echo -ne "e]1;$1a"

but when i run it I get this output:

robin@icarus $ sh tabnm.sh test
-ne e]1;test

If I just run echo -ne "e]1;Testa" straight in the shell, the tab is renamed.

View 2 Replies View Related

General :: Prevent ^C Echo When Ctrl-C Is Pressed?

Jan 10, 2011

I want to prevent "^C" from echoing when Ctrl-C is pressed. I did "stty -echoctl" which some googling results suggested. Now it echos raw Ctrl-C characters instead of the string "^C". That's not any better since it displays some funny blocked hexadecimal in the terminal window.

View 8 Replies View Related

General :: Bash : Echo Arrow Keys?

Aug 12, 2010

Is it possible to echo the arrow keys (up, down, left, right) in bash?

View 4 Replies View Related

General :: Doubt In Echo A For Beeping An Alert?

Feb 6, 2010

Below is the shell script that I am writing to beep an alert but listen to nothing.

Code:
#!/bin/bash
echo Listen to the alert!
echo -e "a"
echo listened ?

View 2 Replies View Related

General :: Turning Off Echo In Shell Script

Feb 27, 2011

Would like to know how to turn "echo" off in a shell scripting. I wrote a shell script, testing a condition, after the condition tested. On the other line I used the echo Command to echo a line, then on the other line I used the "read" command to read an input typed. The crux here is the string or line inputed is what I would like to turn off. Distro is redhat linux.

View 6 Replies View Related

General :: Using Echo In Some Way To Print Hello Infinite Times

Apr 11, 2011

How to print "hello" infinite times without using implicit or explicit loop.

View 1 Replies View Related

General :: Using Echo To Create A Complex Script?

Sep 16, 2010

We're going to be doing a rather large server deployment, and using the provisioning system we have in place there is no current way to just "copy" a file over to the servers. All files/scripts have to be run from the provisioning server.Due to network constraints, the provisioning system can't run a script we need to run (requires certain network assets to complete, but as soon as we modify the network settingshe provisioning system loses access to the server and can't run the script). So,our network configuration script to create the other script on the server in /root when it runs.My original method was to do something along the lines of:

Code:
#network configuration statements here
....

[code]...

View 2 Replies View Related

General :: What Is The @Echo Off Alternative For A Shell Script

Jan 8, 2010

I want to suppress the output resulting from the commands in my scripts, when writing batch commands in dos I would just use @Echo Off.

I have written an example of what I want to achieve

Code:
#!/bin/bash
clear
@Echo off

[Code]....

View 8 Replies View Related

General :: Xargs CD Not Working (Echo Some Directory)

Mar 18, 2010

Please explain why
Code:
echo some_directory | xargs cd
is not working.
Code:
echo some_directory | xargs ls
is working as expected.

View 14 Replies View Related

General :: Echo Newline Character Not Working In Bash?

Mar 11, 2011

I have bash script which has lots of echo statements and also I aliased echo to echo -e both in .bash_profile and .bashrc, so that new lines are printed properly for a statement like echo 'Hello World' the output should be I even tried using shopt -s expand_aliases in the script, I am running my script as bash /scripts/scriptnm.sh; if I run it as . /scripts/scriptnm.sh I am getting the desired output.

View 4 Replies View Related

General :: Enable Caps Lock By Using Echo Command?

Dec 23, 2009

How can i enable caps lock by using echo command. I know that by using syntax echo -e "33[3q" this only turns the capslock led to glow. but the capslock is not working i.e. the words are typed in small case only.

Then by using xmodmap command i.e. syntax xmodmap -e "remove lock = Caps_Lock" or xmodmap -e "add lock =Caps_Lock" doesn't work. On running this it shows unable to display.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved