[Solved] BASH - chaining TEST and COMMAND with && and II
Can you explain what this line of script is doing.
What I have understood is :
-- variable C is the name of a software which is either not installed, so it must be installed or allready installed and then should be update if newer version found
-- branch B="$B $C" is to install the software
-- branch D="$D $C" is to update the software
How does [ "$A" == "0" ] && B="$B $C" || D="$D $C" works ?
Help would be appreciated.
Hi there,
I found a trick to easily postpone a command by a few seconds:
supernova:~# sleep 10 && command &If you logout, the command should still be executed... But not all the time.
Could anyone of you explain me why the following command is executed even after logging out:
supernova:~# sleep... (2 Replies)
Hi friends,
I have a script that sets the env variable path based on different conditions.
Now the new path variable setting should not done in the same terminal or same shell.
Only a new terminal or new shell should have the new path env variable set.
I am able to do this only as follows:
>cd... (1 Reply)
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.
I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Hello All
I have a xml file with many sets of records
like this
<mytag>mydata</mytag>
<tag2>data&</tag2>
also same file can be like this
<mytag>mydata</mytag>
<tag2>data&</tag2>
<tag3>data2&data3</tag3>
Now i can grep & and replace with & for whole file but it will replace all... (4 Replies)
Hi, I have text file abc.txt. In this file, I have the following data.
Input:
Mr Smith & Mrs Smith
Mr Smith &apos Mrs Smith
Mr Smith & Mrs Smith
Mr Smith& Mrs Smith
Mr Smith &Mrs Smith
Output:
Mr Smith & Mrs Smith
Mr Smith &apos Mrs Smith
Mr Smith & Mrs Smith
Mr Smith&... (4 Replies)
What am I doing wrong here? Or is this not possible?
A bug?
alias f='find . >found 2>/dev/null &'
f ; sleep 20 ; ls -l
-bash: syntax error near unexpected token `;' (2 Replies)
Hi!
I wanted to simplify my bash prompt, so I edited my etc/bashrc file. I thought this was the file that would override any other env files. When I opened it, I saw that the way it was setup was not what my prompt looked like, although I forget exactly what was there. But i edited it the way I... (1 Reply)
This script runs tshark, then displays the output. I want to read a keypress at all times throughout this script, especially during the 10 seconds that tshark is running. This code however, only takes input before tshark runs.
#!/bin/bash
main() {
while (( "1" == "1" )) ; do
keypress &&... (3 Replies)
Hi All,
I am trying to run a script which will search for 2 strings(stopped,started) in a text file and echo an output depending on below condition
-bash-3.2$ cat trial1.txt
v
ggg
f
-bash-3.2$ cat trial1.sh
VAR9=` grep 'stopped' /tmp/trial1.txt`
VAR10=` grep 'started'... (4 Replies)
Hi All,
Do you have any sample script,
- auto get file from SFTP remote server and delete file in remove server after downloaded.
- only download specify filename
- auto upload file from local to SFTP remote server and delete local folder file after uploaded
- only upload specify filename
... (3 Replies)
Discussion started by: weesiong
3 Replies
LEARN ABOUT DEBIAN
dist::zilla::plugin::git::commitbuild
Dist::Zilla::Plugin::Git::CommitBuild(3pm) User Contributed Perl Documentation Dist::Zilla::Plugin::Git::CommitBuild(3pm)NAME
Dist::Zilla::Plugin::Git::CommitBuild - checkin build results on separate branch
VERSION
version 1.121820
SYNOPSIS
In your dist.ini:
[Git::CommitBuild]
; these are the defaults
branch = build/%b
message = Build results of %h (on %b)
DESCRIPTION
Once the build is done, this plugin will commit the results of the build to a branch that is completely separate from your regular code
branches (i.e. with a different root commit). This potentially makes your repository more useful to those who may not have Dist::Zilla and
all of its dependencies installed.
The plugin accepts the following options:
o branch - String::Formatter string for where to commit the build contents.
A single formatting code (%b) is defined for this attribute and will be substituted with the name of the current branch in your git
repository.
Defaults to "build/%b", but if set explicitly to an empty string causes no build contents checkin to be made.
o release_branch - String::Formatter string for where to commit the build contents
Same as "branch", but commit the build content only after a release. No default, meaning no release branch.
o message - String::Formatter string for what commit message to use when committing the results of the build.
This option supports five formatting codes:
o %b - Name of the current branch
o %H - Commit hash
o %h - Abbreviated commit hash
o %v - The release version number
o %t - The string "-TRIAL" if this is a trial release
o release_message - String::Formatter string for what commit message to use when committing the results of the release. Defaults to the
same as "message".
AUTHOR
Jerome Quelin
COPYRIGHT AND LICENSE
This software is copyright (c) 2009 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-30 Dist::Zilla::Plugin::Git::CommitBuild(3pm)