About 50 results
Open links in new tab
  1. execute a powershell script (hello world) - Ask Ubuntu

    Feb 17, 2018 · execute a powershell script (hello world) Ask Question Asked 7 years, 11 months ago Modified 7 years, 11 months ago

  2. How to run only selected lines of a shell script? - Ask Ubuntu

    Sep 4, 2024 · On Windows it's possible to create a *.ps1 (PowerShell) file where you can write one command per line or initialize variables etc. You then open it with VSCode and select the lines that …

  3. bash - Why does my powershell script run with "pwsh" but doesn't with ...

    Jan 4, 2024 · I'm using PowerShell 7.4.0 which is installed from snap/snapd. The scripts no longer work with crontab. Specifically, it doesn't retrieve the data from Azure anymore. I know this isn't an Azure …

  4. wsl -e cannot run a script that I can run when wsl has been executed

    Sep 28, 2023 · I created a script in Ubuntu: # bash_test_01.sh echo "cmd is executed" Running the script from inside WSL works: > wsl $ cd /home $ /home/bash_test_01.sh cmd is executed.

  5. How to run a script without closing the terminal? - Ask Ubuntu

    Jan 29, 2013 · For example: gnome-terminal -e "bash -c ~/script.sh;bash" This does the following: opens gnome-terminal executes the script script.sh shows the bash prompt after the script has finished. …

  6. command line - How to execute a script in a different directory than ...

    58 If your script needs to access resources in the same folder that it is being run from, and you have it specified as relative paths, then your script will break. I always add a cd $(dirname $0) to the head of …

  7. Converting PowerShell (.ps1) script to Windows Executable (.EXE) on ...

    Jun 10, 2023 · In this particular section of my project, I need to generate executable files (exe) from dynamic PowerShell (ps1) scripts at runtime. These exe files will then be downloaded onto my …

  8. kubuntu - How to connect local Windows applications like Conda and ...

    May 31, 2022 · For example, in Windows, I have installed Anaconda and MySQL which I am able to access from Git Bash, CMD, or PowerShell but not from within Ubuntu in WSL2. I use WSL for most …

  9. bash - Problem when trying to run shell script : No such file or ...

    Apr 20, 2015 · When you use ./ to execute a file, it will look in the current folder (.) for a folder named home instead of starting from the root (/) directory. Using the bash command explicitly like in …

  10. windows - Can I run PowerShell on Ubuntu? - Ask Ubuntu

    Aug 3, 2014 · I have been assigned a project to be done in Windows PowerShell. I am familiar with shell scripting but it's a new technology. I was told that its similar to shell except few syntax changes. I hav...