Ubuntu Networking :: Test For BT Pairing In Bash?

Dec 18, 2010

I want to test whether or not my phone is connected from bash. I'm finding lots of information about /dev/rfcomm0, but that's not on my system (Ubuntu 10.04). The device pairs just fine, and I can connect with gammu just fine, and I have the device address ("00:1F:5D:37:17:FB").I just need something I can put in a bash script to say "Is this connected or not" akin to testing for a file's existence:

Code:
if [ -f /home/steven/arbitrary filename ]
then

[code]....

View 2 Replies


ADVERTISEMENT

Ubuntu Networking :: Pairing Bluetooth Device Without Pairing Code?

Nov 8, 2010

I have a simple Bluetooth device I would like to pair with my computer. I detect it in the BlueTooth New Device Setup (from the GNOME pannel), detected as "Unknown", I enter its pairing code (1234) and click on "forward". But then it asks me to enter a code on the BlueTooth device... I don't have anything to enter any code on this device. I would like to simply connect to it! From other OS, I manage to connect to the device as it's not asking to write any pair code in the bluetooth device. The PIN code 1234 is enough to make the connection.

View 3 Replies View Related

Networking :: Bash Test Script Which Reads Lines From A File, Builds ISO Messages?

Mar 11, 2010

Here the description of the issue I am having.I am writing a bash test script which reads lines from a file, builds ISO messages, sends them to a server, reads the response with response code and reports the result of the test to a file or on the screen.The message that I need to send is 94 characters long.Here's the portion of a code that I initially wrote:

#~ Open socket.
exec 3<>/dev/tcp/172.26.0.25/9991
#~ Send msg.

[code]...

View 4 Replies View Related

General :: JAVA_HOME In Bash Script Test

Sep 4, 2009

I was wondering why

Code:

Is echoing NO even though

Code:

View 2 Replies View Related

Server :: Bash Script To Test String Complexity

May 12, 2010

I'm looking for a script which is testing how complex an "added" string is, for example like the user is changing his password and check how complex it is, if it included letters (lower/upper case), numbers and other characters.Im doing this for password check, the user type's the password and must be 6 characters long, have upper case letters lets say and numbers and so on.If anyone knows where I could find some bash script which is doing this, it would be really cool.

View 2 Replies View Related

Programming :: Bash Script - Test Variable Against A Range?

Jan 28, 2010

I am fairly new to bash scripting, and I am trying to test a variable against a number range (1-3). This is what I have used so far: The user enters a value, then

while [ "$PROV" != "1" ] && [ "$PROV" != "2" ] && [ "$PROV" != "3" ] && [ $COUNTER -lt 4 ] || [ -z "$PROV" ] && [ $COUNTER -lt 4 ]; do
clear
echo

[code]....

Is there a cleaner way to do this? Something like:

while [ "$PROV" != "1-3" ]&& [ $COUNTER -lt 4 ] || [ -z "$PROV" ] && [ $COUNTER -lt 4 ]; do

View 3 Replies View Related

Programming :: Bash - Test If First 2 Characters In A Filename Are Numbers?

Oct 21, 2010

I have a directory with files like this:

Code:

And what I'd like is to have the files renamed like this:

Code:

How could I code it so that it removes the numerical part of the filename (at the beginning), even with different patterns (like the 01 - artist vs the 01-artist)?

View 8 Replies View Related

General :: Referance To The Bash Shell / Use The Test Command To Evaluate?

Nov 8, 2010

Cis 140 student.how to use the test command to evaluate whether the shell variable I create contains a referance to the bash shell? and use the echo command to determine the result.

View 1 Replies View Related

Programming :: Bash Script To Test For Open FTP Sessions From Specific Clients?

Apr 8, 2009

I look after a server which accepts automatic overnight PASV FTP uploads from remote clients. When the uploads are complete, my Bash script copies the files to another location. The problem is, my script needs to be a bit smarter when it comes to detecting active FTP sessions.

I was using:

Code:

netstat -n | grep ":21 " | grep ESTABLISHED

to test if there were active sessions, but came unstuck when a local user left an unrelated FTP session active. The result - my script hung around all night thinking there was an active upload from a remote client. My server is behind a firewall, so remote clients all show an internal (NAT) address,so I can't differentiate by source IP address.I can't install LSOF or FUSER for security reasons. Is there a way I can test for active FTP sessions from specific users? I am running Red Hat Enterprise Linux Server release 5.2 (Tikanga).

View 7 Replies View Related

Programming :: Bash Shell Read User Argument From Command Line And Test It

Aug 29, 2010

Trying to create a small script that will read user's input, test if user entered some input and if not display some message or display a text using user's input.

The script is the following but i get an error saying "[: 6: =: argument expected"

View 12 Replies View Related

Ubuntu Installation :: Warning - Can't Create Test File /var/lib/mysql/mosty.lower-test

Mar 15, 2010

I am trying to install mysql 5.1.44..so i downloaded the binary package, i extracted it and then followed the instructions that were in the manual but i keep getting this error when running this command

Code:

scripts/mysql_install_db --basedir=/home/mosty/mysql

the error is

Code:

Installing MySQL system tables...
100315 20:07:27 [Warning] Can't create test file /var/lib/mysql/mosty.lower-test
100315 20:07:27 [Warning] Can't create test file /var/lib/mysql/mosty.lower-test

[code]....

You can try to start the mysqld daemon with:

shell> /home/mosty/mysql/bin/mysqld --skip-grant &

and use the command line tool /home/mosty/mysql/bin/mysql to connect to the mysql database and look at the grant tables:

shell> /home/mosty/mysql/bin/mysql -u root mysql
mysql> show tables

View 1 Replies View Related

Ubuntu / Apple :: Pairing IPhone 4 With 10.04 On MabBook Pro Rev 5,5?

Jul 24, 2010

I am trying to pair my new iPhone 4 with my rev5,5 MBP running Ubuntu 10.04 LTS.

Using Blueman I am unable to pair the two devices. The iPhone 4 shows up and I am prompted to pair either with a random passkey or a custom one. The problem is, the passkeys don't match. For instance, if I enter 1234 as the custom passkey - a random 6-digit number is displayed on the iPhone!

Is it possible to pair 10.04 with the iPhone 4? I wish to use bluetooth tethering...

View 1 Replies View Related

Ubuntu :: Bluetooth Headset Pairing Succesful, But Can't Use It?

Jan 18, 2011

I have a bluetooth headset that I hope I can get to work with Ubuntu 10.10 so that I can use it with Skype.I am using these instructions to get it to work. However, there are some differences between my experience and what I expect from the instructions, ultimately leading to some errors.First, I should mention that according to Blueman device manager, it would seem I have successfully paired my device. It has a MAC address. I have attached a screen shot of the interface:It sure looks like the device is recognized by my system. However, when I get to step 5, the MAC address of the one device I see is not the same as the one in the interface above:

Code:
$ hcitool scan
Scanning ...

[code]....

View 4 Replies View Related

Ubuntu :: 10.10 Bluetooth Keyboard Auto-Pairing?

Feb 24, 2010

I've got a Microsoft Wireless Entertainment Keyboard 7000 that worked fine under Ubuntu 9. The GUI discovers my mouse fine, and also appears to connect to the keyboard, but the keyboard does not type when paired through the GUI. When I pair using hidd (either --search or --connect), the keyboard pairs and works fine, however when I cycle power on the keyboard, it will not auto-reconnect, and I get the following error message associated with it (see attached image):

Grant access to '00001124-0000-1000-8000-00805f9b34fb'Device 'Microsoft Wireless Entertainment Keyboard 7000' (00:12:5A:A1:5A:8D) wants access to the service '00001124-0000-1000-8000-00805f9b34fb'. If i grant access, it does nothing, and will simply request it again when a key is typed. how to make the bluetooth service automatically pair (either through config files, or better yet, through the GUI?)

View 1 Replies View Related

Ubuntu / Apple :: Pairing IPhone 4 With 10.04 On MabBook Pro Rev 5.5?

Oct 1, 2010

I am trying to pair my new iPhone 4 with my rev5,5 MBP running Ubuntu 10.04 LTS. Using Blueman I am unable to pair the two devices. The iPhone 4 shows up and I am prompted to pair either with a random passkey or a custom one. The problem is, the passkeys don't match. For instance, if I enter 1234 as the custom passkey - a random 6-digit number is displayed on the iPhone! Is it possible to pair 10.04 with the iPhone 4? I wish to use bluetooth tethering...

View 4 Replies View Related

Slackware :: How To Pairing Bluetooth Device

Aug 6, 2010

I'm struggling for pairing my laptop with my phone to dial up internet. On slack 13 I configured hcid.conf but on the new 13.1 with the new demon bluetoothd I don't know how to pair on command line.Documentation is not a lot, or I'm not able to find it.

View 7 Replies View Related

Fedora Servers :: Several Postfix - Test Antivirus Scan Using Eicar Test Virus ?

Apr 8, 2009

I have installed Postfix + Amavisd-new, then I am started all services (and configured main.cf and master.cf to use amavis).

The questions are:

1) I am trying to test antivirus scan using eicar test virus

Code:

And the message is successfully delivered to mailbox with mark "CLEAN" in maillog. But I cant see any attachment using

Code:

Where is my mistake?

2) Should I update clam and how I can do it?

3) Is spamassassin enabled by default in amavis (I have started daemon)?

4) Where configuration files of spamassassin is stored?

View 1 Replies View Related

Programming :: Automating Bluetooth Device Pairing

Aug 11, 2009

I am developing an application which communicates with a bluetooth device.I do not want the user to pair or unpair the device using the Bluetooth applet or command line, but I want to automate the pairing process through my application. The application will scan and find the bluetooth devices in the proximity of the computer, and automatically pair the required device without any user input.Where should I look for the relevant APIs?

View 1 Replies View Related

General :: Execute Scen-20-test And Vbr-20-test In Ns-allinone-2.34?

Mar 26, 2011

I have created mobility of 20 nodes and vbr traffic using following attached script I executed the file as ns234 vbr.tcl I got the vbr.tr and vbr.nam but I was unable to load the graph using matlab <trgraph> I thought problem with is vbr.tcl script.

View 1 Replies View Related

OpenSUSE Wireless :: Bluetooth Phones Not Pairing Up Correctly?

May 27, 2010

The PIN validation screen is giving me some trouble. I am trying to pair an LG Rumor Touch and the PIN pops up and matches and the phone is happy to accept the pairing so when I click the PIN matches button on the Bluetooth Remote Device Wizard it will not close. It shows a spinny clocky but just sits there until I cancel. The device manager shows a greyed out light but it lists the device. The tray icon shows device, but gives No supported services found on the menu entry. Dolphin shows device but when I click it to browse it loads to an empty folder. The Device Wizard behaves this way for other phones also, but I was able to get some services running if I ignored it and let it sit there. If I canceled the process it messed up the services.

View 1 Replies View Related

Slackware :: 13.1 - Unable To Configure Bluetooth / Pairing Fails

Jun 23, 2010

I can't configure Bluetooth in Slackware 13.1. It basically works. I can scan my mobile phone:
Code:
$ hcitool scan
Scanning ...
BA:BE:DE:AD:AB:ED Nokia 6300

But when I try other commands, mobile phone asks me about passcode. Because I don't know it pairing fails:
Code:
$ gammu 6300 --identify
Error opening device. Unknown, busy or no permissions.

On the other hand when I try to pair computer using mobile phone it doesn't find any device.
Code:
Pair new device
Searching for devices
No devices found

In Slackware 13.0 to configure Bluetooth it was enough to edit /etc/bluetooth/hcid.conf file. In Slackware 13.1 there is no such file. I tried to use blueman but it offers first and foremost a lot of error messages. In despair I even started KDE and tried Bluetooth Manager. It attempts to run for a dozen or so of second and finally fails. I did full installation of Slackware 13.1 and I use generic SMP kernel.

View 6 Replies View Related

OpenSUSE Wireless :: In 11.3 Where Can Put PIN For Bluetooth Devices Pairing Using Just Command Line

Oct 24, 2009

in openSUSE 11.3 where can I put PIN for bluetooth devices pairing using just command line?

View 9 Replies View Related

OpenSUSE Wireless :: Where To Put PIN For Bluetooth Devices Pairing Using Just Command Line?

Aug 17, 2010

In openSUSE 11.3 where can I put PIN for bluetooth devices pairing using just command line?

View 5 Replies View Related

CentOS 5 Hardware :: (Nokia 6086) - Pairing Bluetooth Devices

May 14, 2009

pairing bluetooth devices on Centos? I'm trying to pair a phone (Nokia 6086) with a bluetooth dongle. I've been able to do it on Ubuntu (using the bluetooth applet), but so far no luck connecting it to a Centos machine. Steps I have taken so far:

[Code]...

View 1 Replies View Related

Ubuntu Networking :: How To Test NIC Card

Feb 8, 2011

All of a sudden lost the Internet connection on Ubuntu10.04

$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.088 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.067 ms

[code]....

View 1 Replies View Related

Debian Hardware :: Microsoft Designer Bluetooth Mouse System Hang When Pairing

Aug 1, 2015

Just picked up a Microsoft Designer Bluetooth Mouse.Whenever I try to pair it, my system hangs and I have to hard power it down. The mouse is Bluetooth 4.0, but my Bluetooth connectivity is provided by my Intel Wireless 3160 card which does support Bluetooth 4.0.I'm using Blueman as a front end, and one other thing of note is that it shows as "Unknown" after a scan.If I need to return it, I need to return it, but it seems like a good mouse and I'd like to keep it if I can make it work.

I've took this out of syslog:
Code: Select allAug  1 14:58:04 Noah-LEMUR kernel: [  317.772054] BUG: unable to handle kernel NULL pointer dereference at 0000000000000398
Aug  1 14:58:04 Noah-LEMUR kernel: [  317.772090] IP: [<ffffffff81569f7e>] mutex_lock+0xe/0x30
Aug  1 14:58:04 Noah-LEMUR kernel: [  317.772113] PGD 0
Aug  1 14:58:04 Noah-LEMUR kernel: [  317.772123] Oops: 0002 [#1] SMP

[code]...

View 0 Replies View Related

Ubuntu Networking :: How To Test A Route Through A Machine

Nov 19, 2010

I have a 10.04 install with 2 network cards. wlan0, and eth0. wlan0 is the internet connection. eth0 is the local network. I want to be able to have internet connection sharing between eth0 and wlan0. I have set everything up, using firestarter.

is there a way of testing the eth0->wlan0 routing from the machine itself? The routing table looks sound, but I would like a quick way of confirming it. Is there a tool, like PING or TRACEROUTE which will let me say "ping [URL] going through eth0" ?

View 2 Replies View Related

Ubuntu Networking :: Iperf Throughput Test Between Two NIC'S?

May 30, 2011

I have pc with two NIC's (eht0 and eth1). I want to test throughput switch/router.I can ping on both interfaces.Connection Diagram:

eth0 -> Patchcord -> testing devices -> Patchcord -> eth1

I run two iperf:

-s -B 192.168.1.10 (eth0)
-c 192.168.1.20 -B 192.168.1.20 (eth1)

Results:

[ 3] 0.0-10.0 sec 4.45 GBytes 3.82 Gbits/sec

The test results are false because I use 100Mb/s NIC's. I can't use two pc's for test.I tried to do the same test under windows 7 x64 it and works properly, but under windows xp there occurs the same problem like under ubuntu.

View 1 Replies View Related

Ubuntu Networking :: Speed Test By Command Line?

Jun 26, 2010

I'm using a remote dedicated server running ubuntu server edition, and I have no idea what the upload/download speeds are.Is there a reliable method to test these speeds via the command line?

View 2 Replies View Related

Ubuntu Networking :: Vista Prints Test Page But Nothing Else?

Oct 18, 2010

I've installed Ubuntu 10.10 on an old box to use as an office print/fax and file server. I tried the server edition but I had no chance with command line programming so I've just used normal Ubuntu.

Ubuntu itself is working fine and I've installed my HP Officejet printer and it's fully working on the Ubuntu box. SAMBA and CUPS are installed.

I've then added the printer onto my Vista machine and here's where the fun starts. The Vista box sees the printer on Ubuntu, adds it with no problem and happily prints test pages, but I can't get it printing anything else.

I can't for the life of me find any reason why it would print a test page, but not print from Word, adobe or even a browser.

View 3 Replies View Related







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