Related
Twinsen I want to create the command hello without having to create a file like hello.bat . I want commands without files. This command must execute echo Hello World! . Is there a way on Windows? David Postiel I want to create the command "hello" without havin
Shuma I have a sh file that executes a php file. I am trying to run it without the sh command. I want to run it using the command test.sh instead of "sh test.sh". How do I do this? rot Add a hashbang as the first line of the script: #!/bin/sh
Then make it exe
Shuma I have a sh file that executes a php file. I am trying to run it without the sh command. I want to run it using the command test.sh instead of "sh test.sh". How do I do this? rot Add a hashbang as the first line of the script: #!/bin/sh
Then make it exe
James 33303 I have installed Teamspeak on my Ubuntu 15.10 system. Teamspeak requires scripts to be run in order to start. How can I create a .desktop symlink so I can open the .desktop file and have it run the script? I've seen several approaches, but they all
James 33303 I have installed Teamspeak on my Ubuntu 15.10 system. Teamspeak requires scripts to be run in order to start. How can I create a .desktop symlink so I can open the .desktop file and have it run the script? I've seen several approaches, but they all
stss I'm trying to make a script that needs to save a command to be run as a string. The string in question needs to contain quotes, and when trying to execute it, bash adds additional quote characters, which in some cases causes the command to not work as exp
stss I'm trying to make a script that needs to save a command to be run as a string. The string in question needs to contain quotes, and when trying to execute it, bash adds additional quote characters, which in some cases causes the command to not work as exp
gn How can I load the functionality of this script file without having to source it every time? I created a file foowith the script function to run . It /usr/bin's there, in the PATH. file foo : #!/bin/bash
echo "Running foo"
function x {
echo "x"
}
Howe
gn How can I load the functionality of this script file without having to source it every time? I created a file foowith the script function to run . It /usr/bin's there, in the PATH. file foo : #!/bin/bash
echo "Running foo"
function x {
echo "x"
}
Howe
Roger Steinberg: I have several functional python scripts and would like to run different ilocand loccommands to test different things. Since I'm new to PyCharm, I'm not familiar with its different functions. How can I run a single command without running the
Roger Steinberg: I have several functional python scripts and would like to run different ilocand loccommands to test different things. Since I'm new to PyCharm, I'm not familiar with its different functions. How can I run a single command without running the
Srujana Enduri I don't want to open a command window when running the application, but direct the shortcut to the .bat file when creating the application's python based .exe file The code in the .bat file is like this @python\python.exe -m demo.demo %* where d
Srujana Enduri I don't want to open a command window when running the application, but direct the shortcut to the .bat file when creating the application's python based .exe file The code in the .bat file is like this @python\python.exe -m demo.demo %* where d
bob I am trying to use this output in a for loop: $wc -l example.mgn | awk '{print $1}'
12
However, I get this: for i in {1..`wc -l example.mgn | awk '{print $1}'`}; do echo $i; done
{1..12}
Chepner Bracket expansion happens before any other type of expansio
bob I am trying to use this output in a for loop: $wc -l example.mgn | awk '{print $1}'
12
However, I get this: for i in {1..`wc -l example.mgn | awk '{print $1}'`}; do echo $i; done
{1..12}
Chepner Bracket expansion happens before any other type of expansio
Ramiz Hussain I have a shell script that I want to run without using "sh" or "bash" commands. E.g: replace:sh script.sh I am going to use:script.sh How can I do this? PS (i) I don't use shell scripts very much, and tried reading about aliases, but I don't unde
Ramiz Hussain I have a shell script that I want to run without using "sh" or "bash" commands. E.g: replace:sh script.sh I am going to use:script.sh How can I do this? PS (i) I don't use shell scripts very much, and tried reading about aliases, but I don't unde
Jared Weinstein My goal is to have a program that loops through two files and evaluates a single shell script with all line combinations from file 1 and file 2. I verified that my evaluation line worked by moving it out of the while loop. #!/bin/bash
while rea
Jared Weinstein My goal is to have a program that loops through two files and evaluates a single shell script using all combinations of lines from file1 and file2. I verified that my evaluation line worked by moving it out of the while loop. #!/bin/bash
while
gentlemen When trying to create a while loop, I'm running into a confusing issue where interrupts are not working as expected. The expected behavior is that once the profile name is found in Mongo DB, the while loop will break and the rest of the script will b
gentlemen When trying to create a while loop, I'm running into a confusing issue where interrupts are not working as expected. The expected behavior is that once the profile name is found in Mongo DB, the while loop will break and the rest of the script will b
gentlemen When trying to create a while loop, I'm running into a confusing issue where interrupts are not working as expected. The expected behavior is that once the profile name is found in Mongo DB, the while loop will break and the rest of the script will b
gentlemen When trying to create a while loop, I'm running into a confusing issue where interrupts are not working as expected. The expected behavior is that once the profile name is found in Mongo DB, the while loop will break and the rest of the script will b
Ivan I created a desktop entry and moved it to ~/.local/share/applications, but it doesn't execute when I click on it from the start menu. Here is my .desktopfile: [Desktop Entry]
Type=Application
Categories=Game
Name=Minecraft
Icon=/home/user/Games/Minecraft/
Rampage 01 ok, here is my code, everything works fine except the while loop. The purpose of this program is to enter a number "40235", then divide it by 10, take the remainder (5), subtract it from the main number, and divide by 10 again to get its perfect quo
Charles Clayton Sometimes I want to run certain files, but I don't want to navigate to that folder all the time. Can I use it if I know the filename and find -name file_name.pyonly one result is returned? For example, instead of navigating all the way to a spe
Charles Clayton Sometimes I want to run certain files, but I don't want to navigate to that folder all the time. Can I use it if I know the filename and find -name file_name.pyonly one result is returned? For example, instead of navigating all the way to a spe
Charles Clayton Sometimes I want to run certain files, but I don't want to navigate to that folder all the time. Can I use it if I know the filename and find -name file_name.pyonly one result is returned? For example, instead of navigating all the way to a spe
it bashFor example, with , a flag can be passed --norc --noprofileto prevent reading the shell initialization file. What is the equivalent sh? If not sh, is there at least one dash? (I've tried hacks based on not being set up HOMEyet, but they seem too fragile