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
849 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
811 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
664 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
796 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
925 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
875 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.1k 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
948 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.0k 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
680 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
773 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
765 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
729 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
739 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.2k 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.0k 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
782 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
859 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
923 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
884 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
801 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
729 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
684 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
825 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
882 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.3k 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
701 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
734 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

...