Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
So that this doesn't cost you an hour of Googling around:
Problem: launching psexec (from Powershell) with
./psexec64 \targetip -s -u domain\username -p "password" c:\path\to\this\file.exe -accepteula
Result:
It seems to connect but you get All Pipe Instances Are Busy
The solution (at least in this case: The path to the executable on the target host has a typo.
Yup. No shame. We all do it. Go fix your typo and enjoy the rest of your day.
On a related note, I couldn't shake the "the handle is invalid" error from the command prompt and worked around it by going to PowerShell. Apologies for not having a good technical explanation as to why that's the case, but this has been bonus psexec material.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
How can I solve it? Have no clue why that happens.
Given result
If I uncheck legacy mode the consoles stopped running: after opening the window freezes and nothing more happens (affect either PowerShell and command line):
Expected result
PowerShell and command line can be used in regular mode and are not rely to run in legacy mode.
If it runs in legacy mode but both Powershell and CMD freeze then there's probably something wrong with your windows install.
There's a variety of ways and programs you can use to try and troubleshoot (like Microsoft Sysinternals) but that's beyond the scope of what Stack Overflow is for
Here's a couple Stack Exchange sites you can ask for help troubleshooting the OS:
Super User for end user machines
Server Fault for network admins and servers
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I have written a custom command under user 'krishna' on my laptop, and now i want it to be available for other all user without redefining to each user. For now, i have defined the command in /home/krishna/.bashrc As this file exist under user krishna and work only for krishna. is there any way i can defile it globally for all users?
You can define the command in the /etc/bashrc or /etc/bash.bashrc file (which one depends on your distribution). One of these should exist on your machine.
Commands you define in your local /home/[USER]/.bashrc are only available for [USER].
Commands or aliase defined in /etc/bashrc are available for all useres
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I will need to find a way of knowing what drive my usb is on, so I could copy some files from the PC on to the flash drive. I already know how to do this using powershell, however I need a way of doing it via .bat and cmd.
Thanks in advance.
Your running script is always, %0 and the drive letter holding your running script can be referenced using variable modifiers.
From Call/?
%~d1 - expands %1 to a drive letter only
Example:
Echo %~d0
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I search for this and got some answer involving sudo, I am a beginner to linux and curious how to do it in terminal,
say my file is in Desktop/hw
matlab is installed in application
could give me a detailed commands instructions?
Thanks
I just check that on my MacOS machine. Depending on where you installed your MATLAB, but
/Applications/MATLAB_R2013b.app/Contents/MacOS/MATLAB_maci64 -nodisplay
worked for my case.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Everyday the following files appear in my computer (one per day, inside /my/dir/):
stackoverflow.20130712_0.log
stackoverflow.20130713_0.log
I want to change their name to stackoverflow.20130712 and stackoverflow.20130713, that is, erase the "_0.log" part everyday with a cron job.
A module or script you would recommend me?
I'm on CentOS
You can get the rename script from CPAN:
http://search.cpan.org/perldoc?rename
Then you can do:
rename 's/_0.log$//' stackoverflow*_0.log
No dependencies solution,
perl -e 'for (#ARGV){ $t=$_; s|_0[.]log$||; rename($t,$_) }' stackoverflow.*