Search found 21 matches

by dbm
Thu Mar 19, 2015 7:08 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: SSH Tutorial or Example
Replies: 14
Views: 15204

Re: SSH Tutorial or Example

Hello. Thanks for responding.

For starters, I am not sure if I even have the external installed properly nor not. I have followed the directions as closely as possible. When I run "make livessh.so" I had some output, some errors, but nothing very clear on if it was properly done or not.

When I ...
by dbm
Thu Mar 05, 2015 10:56 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: SSH Tutorial or Example
Replies: 14
Views: 15204

Re: SSH Tutorial or Example

Hi,

i'm ubuntu user and developing with Livecode under this platform too. Using ssh without problem. I'm a beginner and my code is far far far away to something near good.

What are your problems using the ssh external?
by dbm
Wed Feb 25, 2015 10:50 am
Forum: Using Externals
Topic: [SOLVED] processing External handler exceptions
Replies: 2
Views: 10519

Re: processing External handler exceptions

Exactly what I need.

The problem learning a new language is that you don't know what to search :D

Thanks for pointing me in the right direction
by dbm
Wed Feb 25, 2015 10:30 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Getting string from X position until the end of text
Replies: 22
Views: 18927

Re: Getting string from X position until the end of text

First of all, thanks to all for your answers and the quality of them.

I would clarify something:

The application that I'm developing is a visual interface to a router, using ssh to interact with it. I decided to use Livecode for the ability to generate binaries in windows/linux/OSX and 'cause the ...
by dbm
Wed Feb 25, 2015 9:58 am
Forum: Using Externals
Topic: [SOLVED] processing External handler exceptions
Replies: 2
Views: 10519

[SOLVED] processing External handler exceptions

I'm using the external ssh.

I've created a function that tries to connect to an ssh server (code below). The login/password are typed by the user in a card and my idea was to validate the login/password to answer if they were correct or not.
If the login/password are correct, the ssh_userauth ...
by dbm
Tue Feb 24, 2015 5:20 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Getting string from X position until the end of text
Replies: 22
Views: 18927

Re: Getting string from X position until the end of text

Merci monsieur Duez!

Thanks for your answer.

The data is chaotic and effectively in a coherent world the value of "last-seen" should be quoted 'cause is a value composed from 2 alphanumeric strings, but in this case, the data returned by the router for the identifier "last-seen" comes in the ...
by dbm
Tue Feb 24, 2015 9:33 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Getting string from X position until the end of text
Replies: 22
Views: 18927

Re: Getting string from X position until the end of text

You're right Dixie, is what I say in my last post. I'm working to find a way to be able to process all possibilities identifier=value and identifier="text value"


Thanks for the optimisation. I learn a lot.
by dbm
Tue Feb 24, 2015 9:05 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Getting string from X position until the end of text
Replies: 22
Views: 18927

Re: Getting string from X position until the end of text

I think that the problem is here:

"By default, items are delimited by commas. You can change the default comma to create your own chunk type by setting the itemDelimiter property to any character. For example:

on mouseUp
set the itemDelimiter to ":"
answer item 7 of field "text"
end mouseUp

An ...
by dbm
Mon Feb 23, 2015 10:59 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Getting string from X position until the end of text
Replies: 22
Views: 18927

Re: Getting string from X position until the end of text

For example, we have the following text :


Flags: X - disabled, A - active, I - incomplete
0 ;;; comentario de usuario
customer=admin name="user1" actual-profile="test profile"
password="password" location="camp_name" shared-users=1
wireless-psk="" wireless-enc-key="" wireless-enc-algo=none ...
by dbm
Mon Feb 23, 2015 9:00 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Getting string from X position until the end of text
Replies: 22
Views: 18927

Re: Getting string from X position until the end of text

Flags: X - disabled, A - active, I - incomplete
0 ;;; comentario de usuario
customer=admin name="user1" actual-profile="test profile"
password="password" location="camp_name" shared-users=1
wireless-psk="" wireless-enc-key="" wireless-enc-algo=none
uptime-used=8m31s download-used=12180371 ...
by dbm
Mon Feb 23, 2015 6:43 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Getting string from X position until the end of text
Replies: 22
Views: 18927

Re: Getting string from X position until the end of text

I'm using your example as source, but seems that I'm doing it bad.

I've created this funtion:


function wordafter letext leword ledelim
local pos, rtext
put empty into pos
put empty into rtext
put wordoffset(leword,letext) into pos
if pos is not 0 then
put word pos to -1 of letext into ...
by dbm
Mon Feb 23, 2015 6:27 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: get word after offset ?
Replies: 12
Views: 11408

Re: get word after offset ?

Thanks WaltBrown for your tip.

Effectively it's a good way to convert it in an organized list of pairs and I note your suggestion ( I will need something like this in few hours ;) )
by dbm
Mon Feb 23, 2015 6:09 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Getting string from X position until the end of text
Replies: 22
Views: 18927

Getting string from X position until the end of text

Hi again,

I'm searching in forums and google but in the name of $DEITY I don't know how to ask them correctly to get an answer.

I'm trying to get the substring of a given text, begining from a desired position. In other words:

If I've a text like this: "abc def ghi abc dde jkman de" I wanna all ...
by dbm
Mon Feb 23, 2015 5:50 pm
Forum: Using Externals
Topic: [SOLVED] ssh external - error in function handler
Replies: 2
Views: 8485

Re: [SOLVED] ssh external - error in function handler

I forgot to mark this thread as solved.

The external ssh runs ok, the errors came from a bad use of external declarations in my stacks.

If the external is well pointed, all calls to the libssh are ok and the application runs correctly.

I must do it better, but by now (as "fast&dirty" workaround ...