Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged Shell

0 votes
935 views
1 answer
    I wrote a bash script which is supposed to read usernames and IP addresses from a file and execute a command on them ... and how can i fix it? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
894 views
1 answer
    Problem: I'm writing a script that performs several HTTP requests with curl and I want to add the headers to a ... /www.example.org + set +x See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
758 views
1 answer
    I have a scenario where during execution of a batch file, it navigates to a different folder (say to "../asdf") ... CMD etc can be done there. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
885 views
1 answer
    I tried head +10 and it didn't work. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    Is there a way to just create a prolog script called hello.pl like this: #!/usr/local/bin/swipl -q ... install swi-prolog --with-libarchive See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
961 views
1 answer
    On some servers, PHP is not allowed to run shell commands via shell_exec. How can I detect if current ... shell commands execution via PHP? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I have a bash script that runs and outputs to a text file however the colour codes it uses are also included ... be left with Hello and User See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    What's the difference between $@ and $* in UNIX? When echoed in a script, they both seem to produce the same output. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I'm writing script for git hook and have trouble with if statement inside while. File: #!/bin/sh while read ... kind of error is here? Thanks See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
763 views
1 answer
    I have a terminal (xterm) open with bash running in it, showing a prompt. Suppose I know this running bash's ... receive it as a user input. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
865 views
1 answer
    I have a string like this : test:blabla And with sed, I want to replace what's after the ':' with ... didn't found anything. Any help ? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
849 views
1 answer
    I want to run a program's output through a pipe, but it apparently behaves differently when it detects ... it would in regular circumstances? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
842 views
1 answer
    I am trying to collect information on the amount of space left on different servers. So when I execute df -k ... data from a particular column. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
809 views
1 answer
    How can I know if a file is a binary file? For example, compiled c file. I want to read all files from ... , but I want ignore binary files. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I am trying to enable disable bluetooth on android device using command line. I can enable it using adb shell ... won't be device independent. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I have a large script called mandacalc which I want to always run with the nohup command. If I call it from ... used inside the script. cheers. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
871 views
1 answer
    For example, when I type man fg, or man history, the same manpage, BUILTIN(1) will be displayed. There is a ... usage. Where can I find them? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
951 views
1 answer
    I have some shell command. I would like to write the output to the standard output and save it into variable ... are two commands Any idea? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    What I am trying to do is to: Create a .exp file, which will read from the *.txt file from the same ... " Any help is greatly appreciated.... See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
962 views
1 answer
    I need to run a shell command with system() in Perl. For example, system('ls') The system call will ... future processing with my Perl code. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
885 views
1 answer
    Many sources say that every instance of {} will be replaced with the filename found through find, but when I ... filename of each found file. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
804 views
1 answer
    What is the difference between: prompt$ TSAN_OPTIONS="suppressions=/somewhere/file" ./myprogram and prompt$ TSAN_OPTIONS=" ... my first... See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
768 views
1 answer
    I have some set of bash functions which output some information: find-modelname-in-epson-ppds find-modelname-in- ... the best bash practices? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
921 views
1 answer
    So I have this string: [email protected]:/home/some/directory/file I just want to extract the directory ... doesn't have a fixed length. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
992 views
1 answer
    I'm trying to create a script for node.js that will work in multiple environments. Particularly for me, I'm ... in either case for node.js? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I long time searched the internet for a guide how to send sms by command line with Huawei E3131 and HiLink ... on a headless system on superuser See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
793 views
1 answer
    I'm trying to write a small command launcher application, and would like to use bash's tab completions in my ... completions in my own app.] See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
826 views
1 answer
    Given a shell script: #!/bin/sh echo "I'm stdout"; echo "I'm stderr" >&2; Is there a way to call that ... doesn't work. I'm out of ideas! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...