Error Spawning Telnet Tasks
Things Small and Medium Business Service Providers All Solutions Services Advise, Transform and Manage Financing and Flexible Capacity IT Support Services Education and Training Services All Services Products Integrated Systems Composable Systems Converged Systems Hyper Converged Systems Blade Systems Infrastructure Management Software Application Lifecycle Management Application Delivery Management Big Data Analytics DevOps Enterprise Security Hybrid and Private Cloud Information Governance Information Management IT Service Management Operations Management Server Management Software as a Service (SaaS) Software-Defined Data Center Storage Management All Software Servers Rack Servers Tower Servers Blade Servers Density Optimized Mission Critical Servers Servers for Cloud Server Management All Servers Storage All-flash and Hybrid Storage Midrange and Enterprise Storage Entry Storage Systems Data Availability, Protection and Retention Software Defined Storage Management and Orchestration Storage Networking All Storage Networking Switches Routers Access Points and Controllers Wireless LAN Campus and Branch Networking Data Center Networking Wide Area Network Software Defined Networking Network Functions Virtualization Network Management All Networking About UsSupportClearType to search2086159Solutions Transform to a Hybrid Infrastructure Protect Your Digital Enterprise Empower the Data-Driven Organization Enable Workplace Productivity Cloud Security Big Data Mobility Infrastructure Internet of Things Small and Medium Business Service Providers All Solutions Services Advise, Transform and Manage Financing and Flexible Capacity IT Support Services Education and Training Services All Services Products Integrated Systems Composable Systems Converged Systems Hyper Converged Systems Blade Systems Infrastructure Management Software Application Lifecycle Management Application Delivery Management Big Data Analytics DevOps Enterprise Security Hybrid and Private Cloud Information Governance Information Management IT Service Management Operations Management Server Management Software as a Service (SaaS) Software-Defined Data Center Storage Management All Software Servers Rack Servers Tower Servers Blade Servers Density Optimized Mission Critical Servers Servers for Cloud Server Management All Servers Storage All-flash and Hybrid Storage Midrange and Enterprise Storage Entry Storage Systems Data Availability, Protection and Retention Software Defined Storage Management and Orchestration Storage Networking All Storage Networking Switche
Perl Lists Python Lists PHP Lists Ruby Lists Tcl Lists ActiveState Lists Lists » expect [Expect] spawn hanging while spawning telnet From: Perez, Aaron P.
suggestions Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type. Showing results for Search instead for Do you mean Find a Community Communities Welcome Getting Started Community Memo Community Matters Community Suggestion Box Have Your Say https://communities.sas.com/t5/General-SAS-Programming/Error-spawning-multiple-processes-on-server-parallel-processing/td-p/247870 SAS Programming Base SAS Programming SAS Procedures ODS and Base Reporting SAS/GRAPH and http://stackoverflow.com/questions/36554640/zombie-telnet-process-pile-up-while-using-spawn-with-expect ODS Graphics General SAS Programming SAS Studio Data Management SAS Data Management Analytics SAS Statistical Procedures SAS/IML Software and Matrix Computations SAS Data Mining SAS Text and Content Analytics SAS Forecasting and Econometrics Mathematical Optimization, Discrete-Event Simulation, and OR Business Intelligence SAS Enterprise Guide Integration with Microsoft Office SAS Visual Analytics SAS Web error spawning Report Studio SAS Stored Processes Administration Administration and Deployment SAS Hot Fix Announcements SAS ITRM Learn SAS SAS Analytics U SAS Certification Customer Intelligence SAS Customer Intelligence SAS Intelligent Advertising Risk Management SAS Risk Management SAS Viya About SAS Viya SAS Visual Data Mining and Machine Learning Coding on SAS Viya SAS Visual Investigator Health Care and Pharma SAS in Health Care Related Fields SAS Drug Development error spawning telnet SASware Ballot Ideas Regional Groups Special Interest Groups SAS Community Denmark SANZOC CoDe SAS German SAS Visual Analytics Nederland Singapore SAS Global Forum 2017 SAS Communities Library Home / SAS Programming / General Programming / Error spawning multiple processes on server (paral... Error spawning multiple processes on server (parallel processing) Reply Topic Options Subscribe to RSS Feed Mark Topic as New Mark Topic as Read Float this Topic to the Top Bookmark Subscribe Printer Friendly Page « Message Listing « Previous Topic Next Topic » ioannis Occasional Contributor Posts: 14 Error spawning multiple processes on server (parallel processing) [Edited] Options Mark as New Bookmark Subscribe Subscribe to RSS Feed Highlight Print Email to a Friend Report Inappropriate Content 02-03-2016 05:19 PM - edited 02-03-2016 05:20 PM Hi,I am trying tospawn multiple processes in a windows 2012R2server. A simple version of the code I use is below, but I keep getting the error below. The same code on my personal computer works well, but not on the server for some reason. Thanks a lot in advanceThis is what I do:================================================================OPTIONS SASCMD='sas -nosyntaxcheck' AUTOSIGNON;rsubmit task1 wait=no ;*** Putting Code For Task 1 here *****;ENDRSUBMIT;rsubmit task2 wait=no ;**** Putting C
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Zombie telnet process pile up while using spawn with Expect up vote 1 down vote favorite I intend to make telnet connection with a network device using Expect and it involves sending commands to the device multiple times and also rebooting the device as well, thereby need to make the telnet connection again and again. proc dputs {msg} { if {[info exists ::debug] && $::debug} { puts $msg } } proc open_telnet_session {} { set sResult FAIL set prompt "(\r|\n|\r\n).*?(#|%|>|\\\$) $" #set prompt "#|%|>|\\\$ $" set timeout 60 if {$::tcl_platform(platform) eq "windows"} { spawn {c:\Dinesh\telnet_32bit.exe} $::device_ip } else { spawn telnet $::device_ip } set ::device_ip $spawn_id expect { timeout {puts "Timeout happened while spawning telnet session";return $sResult} eof {puts "EOF happened while spawning telnet session";return $sResult} "login: $" {send "$::device_uname\r";exp_continue} "password: $" {send "$::device_pwd\r";exp_continue} -re $prompt } set sResult PASS return $sResult } proc send_cmd_to_device {cmd} { set timeout 180 dputs "cmd : $cmd" set sResult FAIL set prompt "(\r|\n|\r\n).*?(#|%|>|\\\$) $" set ::spawn_id $::device_ip if {[catch {send "$cmd\r"} errorMsg]} { puts "Failed to send the commands..." puts "Reason : $errorMsg" return $sResult } expect { timeout {puts "Timeout happened while sending commands to telnet session";return 0} eof {puts "EOF happened while sending commands to telnet session";return 1} "invalid token" {puts "Invalid token error from device";exp_continue} "$cmd" { dputs "\n\n matching the cmd\n\n";set ::actual_cmd_match 1;exp_continue} -re $prompt { if {$::actual_cmd_match} { dputs "\n\n final prompt match \n\n" set ::actual_cmd_match 0 set sResult PASS } else { dputs "\n\n still waiting for prompt match \n\n" exp_continue } } } return $sResult } proc close_telnet_session {} { set sResult FAIL set ::spawn_id $::device_ip #This will send 'Ctrl+]' to close the telnet connection gracefully if {[catch {send "\x1d"} errorMsg]} { puts "Failed to send the commands..." puts "Reason : $errorMsg" return $sResult } expect { timeout {return $sResult} eof {return $sResult} -noc