All Questions
Tagged with ruby powershell
99
questions
0
votes
0
answers
73
views
Error while installing ruby on rails on windows 11
I'm trying to install Ruby on Rails, but when I run the command "gem install rails", PowerShell throws this error:
C:\Users\milos>gem install rails
Using rubygems directory: C:/Users/...
0
votes
0
answers
954
views
Rails Shell Command - ERROR: UtilBindVsockAnyPort:284: socket failed 1
I'm building a Ruby on Rails application (on Windows 11 with Docker) that requires some command line execution. I've gotten this to a pretty good place, but I've hit a wall, and googling is bringing ...
0
votes
0
answers
31
views
"No template for interactive request" when using Ruby on Rails on Powershell, but not on Command Prompt
When using Rails for the first time (well, the first time in a few years) I came across a confounding error. When following the Getting Started turorial exactly, I got this error:
This persisted even ...
1
vote
1
answer
53
views
powershell V2 echo "すみません" | ruby -e "puts gets" occur gibberish
In powershell(v2) condition,I run the command,it goes gibberish.
echo "すみません" | ruby -e "puts gets"
?????
My powershell is V2.How should I get the correct output?
2
votes
1
answer
69
views
What 's the reason of Ruby IO stream in Windows powershell file type encoding
I have a strangeness problem. In Windows7 operation system,I try to run the command in powershell.
ruby -E UTF-8 -e "puts 'どうぞよろしくお願いします,Mr Jason'" > test.txt
When I read test.txt file:
...
0
votes
0
answers
51
views
How to capture exception thrown by gem install in powershell
I'm trying to capture the exception thrown while installing gems, I see the error on the command window however I'm not able to capture the error in catch block, I would like to capture and log in ...
0
votes
0
answers
63
views
Ruby gets method makes command prompt crash
I am currently making an app that deals with Ancient Greek (Unicode extended) characters. To put it simple, the user types a word in Greek and the program analyses it morphologically and shows all its ...
1
vote
0
answers
72
views
UTF-8 and CJK doesn't displaying with gets in Ruby (Windows)
I recently started to use Vim, but I'm having some encoding problems, and I'm not really sure if it's a Ruby problem or a cmd/powershell problem, but Ruby is not accepting CJK characters with gets, ...
1
vote
1
answer
159
views
how do I use Regex in powershell commands with ruby using puppet
I need to create a fact in puppet to get which versions of .netcore are installed in the servers.
Facter.add('common_dotnetcore_version') do
confine :kernel => 'windows'
powershell = 'C:\...
0
votes
0
answers
106
views
Calling powershell or ruby script by VBA, ideally take output to Excel or point user to output path
I need Excel VBA to call another script language using shell. Ideally, also returning its output, but if that is hard to do, just to execute that other script and tell the user in a pop-up MessageBox ...
1
vote
1
answer
128
views
Chef powershell_out SystemCallError The filename or extension is too long. - CreateProcessAsUserW failed
I created a custom resource gmsa to create Windows Active Directory Group Managed Service Accounts. I am getting an interesting error message when calling this custom resource, which I am currently ...
0
votes
3
answers
231
views
How to Import-Module in Windows 2008 R2 using Puppet facter?
I'm creating a puppet custom fact using ruby script to output some AD related details. I learned the ServerManager is a prerequisite module as this is not automatically added in the Windows 2008 R2 ...
1
vote
0
answers
101
views
How to capture output from Ruby script to Powershell
How can I redirect the output from Ruby back into the calling Powershell script?
Here's my code snippet:
$powershell_variable = & [path to ruby.exe] ruby_script.rb $arg1 $arg2
The script runs ...
0
votes
1
answer
11
views
RUBY: TCPListener DOS string format
I have a Power Shell script which send data to a Ruby listener on a Linux machine. When I am sending the variable $env:COMPUTERNAME, or any other variable like 'report.csv', I have some weird output ...
0
votes
1
answer
227
views
Using ruby variable in a PowerShell script with winrm
EDIT:
I would like to count files/folders of storage containers via virtual machine manager PowerShell cmdlet.
I went over similar questions, but still am struggling with syntax.
I have a ruby ...