Ubuntu :: Using 'expect' And Scp - Hiding Prompts?
Mar 25, 2010
I'm using a small "expect" script to automate password entry for some file copying.The automation works fine, but the "Password: " prompt still displays on the screen. How do I hide the prompts so the user doesn't see "Password: " on the console?Here's the relevant section of my script:
Code:
expect -c "spawn /usr/bin/scp -q $2 user@$1:$2
set timeout 60
[code]....
View 9 Replies
ADVERTISEMENT
Nov 2, 2010
I'm trying to Use Expect to automate a curl function. basically I don't want to type enter for my script to run. Can anyone point me to a good Expect tutorial?
View 1 Replies
View Related
Jul 27, 2010
I am trying to make a script that can be used to check server load on a remote server and produces sound on our local machine, when server load exceeds a particular limit.1. I want to execute command uptime or uptime | awk '{print$10}'on the remote server and store the result in a variable(say x), and later use it in the bash script.
Bash Part
#!/bin/bash
x=$(/root/Desktop/exp)
[code]...
View 1 Replies
View Related
Jun 16, 2010
I am writing an expect script. At a certain point there is a rule that produces this debugging output:
Code:
expect: does " Address or name of remote host [x.x.x.x]? " (spawn_id exp8) match glob pattern " Address or name of remote host [x.x.x.x]? "? no This just times out When I use -exact for the expect keyword it does work What am I doing wrong? THe first should also match in my opinion because it is equal as well. Even if I remove the I still have the same issue if I try without -exact. I don't understand. I tried removing the but still got the same.
View 5 Replies
View Related
Nov 19, 2008
I'am new to expect how do i send function key F12 in an expect script?
View 1 Replies
View Related
Feb 6, 2010
I am running Ubuntu 9.10. When I open Evolution, it prompts me for a password to the default keyring. I am not sure what this is, but I would like to not have to do this. I looked around in Evolution and did not see a way to have this password entered automatically. I searched this forum and it found no results. So I don't know if my problem is unique or not.
View 3 Replies
View Related
Feb 17, 2010
Wonder if someone out there can help me.
First, a small back-story. I upgraded my Mythbox to 9.10 last year, and as a backup path, I left the original HDD (sda) intact, and chucked a spare drive (sdc) in for the install. I just changed the boot order in the BIOS to boot from the spare drive, and all my data (/var/lib/mythtv/) is on a separate drive (sdb). The original drive is redundant, I just didn't get round to pulling it.
Now, I got a new 1TB drive today, transferred all my data onto it and swapped it for the old data drive, and at the same time pulled the unused old install drive. So I just have the new 9.10 (spare) install drive, and the new drive.
I changed my fstab with the correct UUID's of the drives, but at boot, I get 'gave up waiting for root filesystem on sdc1' and the intramfs prompt. Listing the drives by UUID, I have sda(1&2) and sdb(1&2).
I can get the system bootable again by putting the unused old install drive back, so that I have an sdc, but this is far from ideal, as I have a drive spinning away nearly 24/7 that is not needed.
Now, I thought that using UUID's got away from the whole sda/sdb/hda ... business, but it seems that the kernel is still looking for sdc1 to boot off.
FWIW, my fstab: The old and new data drives, and the boot drive are there, the redundant drive doesn't have an entry.
Code:
mythbox@mythbox-desktop:/$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
code....
So I guess I need to point grub to the correct location. Now I know I'm not supposed to edit grub.cfg, but I can't see how I can successfully boot the system in a state where running update-grub will pull the correct drive in. My thinking is that what I need to do is edit the
Code:
linux/boot/vmlinuz-2.6.31-14-generic root=/dev/sdc1 ro quiet splash hpet=disable
line to read
Code:
linux/boot/vmlinuz-2.6.31-14-generic root=UUID=4a5599f5-d409-42b5-a74f-0c689f15d73d ro quiet splash hpet=disable
Shutdown, pull the redundant drive, boot (hopefully anyway), then run update-grub.
View 9 Replies
View Related
Jul 28, 2010
I know, I know, its a security feature. That doesn't make it any less annoying. I find the constant asking for my password to be every bit as irritating as Windows's UAC. When I want to use the terminal, or when I want to download something, I don't want to have to enter my password every time. I don't care that someone could theoretically do something to my computer in some way. I managed to stay out of harms way in windows with UAC off, I'm sure I can do it in ubuntu without the constant nagging of the password prompts. Its annoying and I am tired of dealing with it. Anyone know how to turn it off? I am really not looking for reasons to leave it on. Its the same with UAC: Yeah, it can keep you out of trouble. No, I don't want it on.
View 9 Replies
View Related
Jun 23, 2010
When configured to save and restore running applications (System, Preferences, Start-up Applications, Options) the restoration of Firefox instances prompts for profile.
In my case Firefox was running with several different profiles. Each one was started with "-no-remote" and "-P [profile-name]".
Any ideas? Would it be possible to auto-close only Firefox windows?
View 1 Replies
View Related
Apr 19, 2011
How to fix the problem that is happening with gksu. It prompts me for the administrative password. I don't (for advised security reasons) have a password associated with the root account.
The sudo works fine and accepts my sudo password. Gksu fails with "incorect password... try again." error.
This is a new install of the Ubuntu Server 10.10 x64 Maverick edition.
View 6 Replies
View Related
Nov 11, 2010
Story: i use Fedora9 and i want to set up a FTP server whithout creating a home dir for each and every user, i want them to share 1 home dir. All users are in one group.Problem: i write the following:
Code:
root# useradd -d /home/ftp_home -g ftp_users -M user1
root# useradd -d /home/ftp_home -g ftp_users -M user2
[code]...
View 1 Replies
View Related
Jan 8, 2010
So I needed to remove linux from a dual boot, single drive setup I had going. Without thinking I was in Windows XP and formatted the linux partition I had created. After trying to reboot the computer I receive a Grub 1.5 Error 17 rightfully so.
I am having a hard time finding a solution... All I need to do is get the machine back to being able to boot into Windows without any prompts.
View 4 Replies
View Related
May 30, 2010
Kubuntu live CD prompts me for user name password, what is it? I've tried all obvious blank, kubuntu etc, none worked.
View 2 Replies
View Related
Jun 9, 2010
I have set up an ssh server for myself and a friend to work on a project. It is configured to use password authentication, but I am somewhat uncomfortable giving him my password to get the files. I was wondering if there was any way to have a script that logs him on, filling in the password at the prompt. So that when "ssh xxxx@xxxxx" is run, the script fills in the prompt for the password rather than him filling it in.Of course he still could find the file within the script before it is run, but knowing his somewhat ADD nature it seems unlikely.
View 1 Replies
View Related
Nov 2, 2010
Not sure exactly how to explain it. My command prompt screens are appearing messed up.the resolution appears to have squeezed the command prompt vertically to just a few pixes at the top of the screen. The command prompt appears to also repeat several times horizontally. This is also the case with boot-up.I'm still in the experimental phases of learning how linux works, messing with GDM, and installing/installing some boot screen tweaks here and there to see what would happen.I can't quite remember exactly WHAT I did.
View 6 Replies
View Related
Mar 2, 2011
Basically I'm trying to create a bash script that'll ask for a folder name and then change into that folder.
Code:
Not real code but bare with me!
echo "Enter the desired folder and press [ENTER]
read $folder
cd $folder
pwd
/home/<user name>/<whatever the user entered>
Is this possible with bash or am I chasing a pipe dream?
View 1 Replies
View Related
Feb 3, 2011
Is there an app that will display a weather warning like how pidgin and empathy display prompts when someone logs on, I would like to be immediately informed if there is a severe weather alert from the weather station in me city.
View 1 Replies
View Related
Jun 18, 2010
Ubuntu 10.04.When I click on any active windows on the low ubuntu's panel or when I click on minimazing icon I have this problem (attachment n1) but I want that it will be that in attachment n2. What can I do to repair it?
View 2 Replies
View Related
May 5, 2011
I installed Minecraft and I want to hide the .JAR extension on the file on my desktop. I tried just renaming it and deleting the ".jar" from the name, but when I tried opening it, it opened as an archive, rather than an executable, even though I had the "Allow executing file as program." box checked off. What can I do to hide the extension?
View 1 Replies
View Related
Jan 18, 2010
I have a standard home set-up for my Ubuntu OS, and I would like to know whether its possible to cut out the repetitive prompts to enter the password, as when you connect to the internet or access files on a partition that's not home, or install new software.
View 1 Replies
View Related
Jun 3, 2010
Was just wondering if there was a way to disable the password prompts that pop open every time I try to install something. Is there a way to do that?
View 3 Replies
View Related
Nov 9, 2010
It's been awhile since I've been on here. I suppose that can be considered a good thing, since I made the completely transfer to Ubuntu three months ago and everything's been running completely smoothly. Anyway, security is a pretty big thing to me. I usually change the root password, take sudo off (and default gksu, not gksudo), encrypt my hard drives, etc... One thing I also do is create a separate password for my login keyring. I don't mind having to enter one extra password at login, but it started prompting two times, and now three. It's the same password every time, so my question is..
View 4 Replies
View Related
Apr 8, 2010
In viewing some web pages, the right hand dozen or so characters are hidden unless the left-right scroll bar is used. When Firefox 3.5.8 32 bit is expanded to full screen on a 1920 pixel wide monitor on Kubuntu 9.10, Firefox changes the word wrap so the new dozen or so characters are STILL hidden, forcing me to use the left-right scrool bar.
There no longer appears to be any Word Wrap option. I tried several solutions Googled, including userContent.css hacks and a couple of add-ins, but they all appear to apply only to the preformatted tag. This is not a "pre" issue. The text in question is not inside the preformatted text tag, and the site CSS is not under my control.
View 5 Replies
View Related
Apr 21, 2010
Does this happen to anyone? Is there fix for it? The problem doesn't appear immediately but seems to develop some time after launching docky.Some relevant specs:
- Ubuntu 9.10
- GeForce GTX 285 with 195.36.15 drivers
- Compiz enabled
I've attached a picture of it hiding behind Firefox.
View 2 Replies
View Related
Dec 4, 2010
I have installed squido into my ubuntu 8.04. It almost works perfectly but it wont hide my ip. When i go for an example to www.myip.is it shows my real ip & host but says that i connected into that website via my proxy. How i can hide my real ip with squido and use my server's ip as my ip.
View 9 Replies
View Related
Dec 15, 2010
I'm having some issues with my install of Ubuntu 10.10 onto a 8GB usb stick. I have completed the install and everything seems to be working perfectly booted on my Dell, except I am unable to see most of the free space on the drive...under "Places:Computer" I click the properties on the File System drive and it shows only 656MB of free space...
I made the mistake of forgetting to partition the drive before install; am I out of luck now? should I reformat, partition, and then install again? or is there extra space hiding somewhere I cant find? (I'm somewhat new to Ubuntu, so I'm not familiar with all the nooks and crannys yet!)
View 9 Replies
View Related
Feb 19, 2011
I have an application installed under the directory /home/ubuntu/MyApplicationI have a symbolic link on the desktop to a launch.sh script inside the MyApplication directoryLaunch → /home/ubuntu/MyApplication/launch.shI have ubuntu(10.10) running on a usb flash drive. I want to allow other user's to run the application by using the link on the desktop but I want to keep the installation folder private. So the users can run the application but they are unable to view or copy the files inside the installation folder.
View 8 Replies
View Related
Apr 18, 2011
I have dual boot PC with XP and U10.10. Is it possible to set up dual OS boot menu that it is hidden in a way that i can still choose to boot which OS i want from that hidden menu.Or even better, is it possible to set up automatic boot into XP in a way that boot menu isn't shown at all but that I can call boot menu via keystroke (like you call boot menu to go into the safe mode in XP options by pressing F?
View 3 Replies
View Related
May 10, 2011
Just wondering how can one go about hiding their IP or displaying a false IP in Linux. Is this possible? Its not that I have anything to hide or any such things, I just like my privacy and don't like the idea that some one can track my actions and my location.
View 5 Replies
View Related
Jun 21, 2011
I want to secure my internet connection by hiding my ip with another ip so I can log to my server with 2 ips . and when someone is tracing the "fake" ip it wont affect me .
View 5 Replies
View Related