Welcome to Jonic Developer 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
339 views
1 answer
    My Java application has to work like this: User select bash commands in GUI and press "send." Application return distinct and independent answers for ... this end in timeouts and connection lost usually. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
298 views
1 answer
    My script is taking the command line argument and it needs to pass this to curl command in double quotes. This is the simplified version of what I ... http://someURL But its not working. Please help See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
337 views
1 answer
    I need to escape the @ that use the password because it is confused with the host. Example 1: git clone https://user:[email protected]@github.com/user/repo.git ... use to change the root password on a line only. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
289 views
1 answer
    I'm working on a shell script to optimize my build process on a web/front end project. I'm using sass to enhance css development and the ... all day and keep the build process running smoothly. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
485 views
1 answer
    I've got the following lines in my CMakeLists.txt file. I'm running CMake 3.5.2 on Windows 7, and using Visual Studio 12 2013 as the ... what environment/shell/whatever these commands are being run in? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
236 views
1 answer
    I've written the following batch file to create multiple files using FOR loop: @echo off cls FOR /L %%i IN (1 1 10) DO ( echo.> file%%i.txt ... logical issue is causing the creation of this extra file ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
379 views
1 answer
    I'm running on win2003 server, PHP 526, via the cmd-line. I have a cmdline string: $cmd = ' "d:Prog Filesfoo.exe" -p "d:data ... successfully. How do I properly handle spaces in PHP shell_exec? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
363 views
1 answer
    When I run a program on PowerShell it opens a new window and before I can see the output, the window closes. How do I make it so PowerShell keeps this window open? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
403 views
1 answer
    I have a text file, it contains a single word on each line. I need a loop in bash to read each line, then perform a command each time ... .txt. For each in testfile.txt { some_function linefromtestfile } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
283 views
1 answer
    I'm using FFmpeg version 3.3.4 (installed via brew) through the command line to record my desktop during some automated tests on my macOS Sierra (10.12.6 ... set the video frame size, but it doesn't work. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
329 views
1 answer
    I have a file where a bunch of variables are defined. It could be one, four or twenty. They have names such as ipt_rss and bhd_rss. Let's call ... "Success finding $var_i" done How can I accomplish that? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
393 views
1 answer
    I have the following shell(/expect) script. #!/bin/bash expect -c ' set user [lindex $argv 0] set password [lindex $argv 1] set ipaddr [lindex ... with actual value the script runs. Thanks in advance. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
306 views
1 answer
    file1.text contains below data. VARIABLE=00 RATE=14 PRICE=100 I need to increment value by 1 only for below whenever I want. VARIABLE=00 file name: file1.txt ... =01 in next run VARIABLE=02 and so on.... See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
340 views
1 answer
    I am writing a python program that uses other software. I was able to pass the command using subprocess.popen. I am facing a new problem: I need to ... my question here. Thanks ahead for all your help. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
474 views
1 answer
    I've the following Makefile where I'd like to use Bash parameter substitution syntax as below: SHELL:=/bin/bash Foo=Bar all: @echo ${Foo} @echo ${Foo/ ... } OK How can I use the above syntax in Makefile? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
521 views
1 answer
    I have a text file with following values in input.txt key1=value1 key2=value2 key3=value3 key4=value4 need the jq rexpression to convert it to below json format by ... value3 " }, { "key4": "value4" } ] See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
297 views
1 answer
    I had to gather a list of IP addresses from a list of hostnames, this is what I came up with: #!/bin/bash Hosts='host1 host2 host3 host4 host5 host6 ... ') done Is there a more efficient way to do this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
312 views
1 answer
    I am trying to write an automate process for AWS that requires some JSON processing and other things in bash script. I am following a few ... why? explanation with examples are highly appreciated. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
405 views
1 answer
    My program has to watch for files which match a mask. The folder name and mask are passed through command line arguments. But the mask is replaced by the ... bad idea, but I think there exists better way. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
330 views
1 answer
    I've come across the code if [ $# -eq 1 ]; then echo "usage: Phar ~/flashmem ~/archive" exit fi I've never come across [ $# -eq 1 ]; before and I can't seem to find a meaning. What does it do? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
208 views
1 answer
    The first part of the script looks like: curl -k -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Cache-Control: no-cache" -d 'username= ... "Doe", ??} }? ' "https://randomurl.com" See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
277 views
1 answer
    I have a file -- a, and exist some continues blank line(more than one), see below: cat a 1 2 3 4 5 So first I want to know if exist ... also I want to know if exist other manner could implement this? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
286 views
1 answer
    I am new to python but have been using both IDLE and EricIDE for a few weeks without any major problems. I was editing a program I had ... AttributeError: 'module' object has no attribute 'MAXREPEAT' See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
308 views
1 answer
    I would like to be able to launch VI from within my Java program and wait for the user to quit VI before proceeding. Here's the code snippet that ... must have done this before - help! Thanks, Mark See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
348 views
1 answer
    I would like to install/copy all my directories and files recursively from working directory to my target package rootfs on yocto build system. I tried ... missing any. please suggest if any other way. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
280 views
1 answer
    I am trying to copy a set of files from docker host to container. On a AUFS system directly going into /var/lib/docker/aufs/... works. However I am ... is 1.6.0 and container image is based on RHEL. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
337 views
1 answer
    I want to add a text on the top of my data.txt file, this code add the text at the end of the file. how I can modify this code to write the text ... '>>data.txt'); print MYFILE "Title "; close (MYFILE) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
354 views
1 answer
    .txt looks like: 2013-04-10;248179;5431;5375.30€;1.49 .. .. .. I need a .csv file with a Header: Date Visit Login Euro Rate 2013-04-10 248179 5431 ... .. .. Is there a way to get this result with BASH? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
...