• Support
  • Articles
  • Resources
  • Products
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead

Macro for SSH

Moderator: boris

  • 1
  • 2

33 postsPage 2 of 2

 

boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1605
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Wed May 16, 2007 6:46 pm
I'd suggest you to add setsync 1 next to your connect command. Then if there is no branching involved you just do wait then sendln, then wait again etc. Usually argument of wait is the command prompt text.
Thanks.
Best regards,
Boris

 

thrdbseshwcase3
Newbie

Posts:
17
Joined: Mon May 14, 2007 3:30 pm
by thrdbseshwcase3 » Wed May 16, 2007 6:55 pm
Could you give me an example?

I want to do a en (sendln 'en')
(sendln 'sh run')
I put setsync 1 next to it and still couldnt get it

 

boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1605
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Wed May 16, 2007 7:14 pm
Thanks.
Best regards,
Boris

 

thrdbseshwcase3
Newbie

Posts:
17
Joined: Mon May 14, 2007 3:30 pm
by thrdbseshwcase3 » Wed May 16, 2007 7:52 pm

 

IshmaelCallMe
Guru

Posts:
674
Joined: Thu Jan 26, 2006 2:28 am
by IshmaelCallMe » Thu May 17, 2007 1:22 pm

 

boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1605
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Thu May 17, 2007 1:37 pm
I would still add waits between sendlns :wink:
Thanks.
Best regards,
Boris

 

boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1605
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Thu May 17, 2007 9:57 pm
Indeed, missing wait can make difference between working and not working script :wink:
Thanks.
Best regards,
Boris
bjdraw
Newbie

Posts:
7
Joined: Wed Aug 27, 2008 4:00 pm
by bjdraw » Thu Aug 28, 2008 2:36 pm
I am using this marco and it works great, but I can't figure out how to log failed connection attempts and move on to the next one in the list.
Display posts from previous:
Sort by:
  • 1
  • 2

33 postsPage 2 of 2

Users browsing this forum: No registered users