Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Notices

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-15-2021, 10:46 AM
BjoernH BjoernH is offline
Registered User
 
Join Date: Mar 2018
Posts: 55
Keep getting syntax error message from new MENUITEM

Good day.

I'm baffled as to why I keep getting a syntax error from this menu item I added to the menu file.

Code:
MENUITEM "&Show IPv4 addresses (all VMs)" , "SEND" , "for  i in {5,6} {8..9}; do echo "";  ssh -q -o "StrictHostKeyChecking no" 192.168.210.$i "uname -n;/usr/sbin/ip a| grep 'inet ' | grep -v host | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -v 255$";done\n"
The only way I can get it to launch with the new menu item is when I omit the double-quotes preceding 'uname' and after the '255$'. But that compromises the command after 'uname -n'.

Please advise.

Bjoern
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 03:22 PM.