Sponsored Content
Homework and Emergencies Emergency UNIX and Linux Support Bash - command substution not working Post 302926527 by Swathe on Tuesday 25th of November 2014 12:54:25 AM
Old 11-25-2014
I'd recommend updating tot he latest version. 14 is a very long way behind.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

#!/bin/bash has stopped working

Hi I'm writing a script and I've put #!/bin/bash as the first line so that I can just type my scripts name 'whodate' at PS1 instead of ./whodate. This has suddenly stopped working for me. It used to be the case that I could start a script with #!/bin/bash and it would work, but for this script... (2 Replies)
Discussion started by: zorrokan
2 Replies

2. Shell Programming and Scripting

if loop not working in BASH shell

i have this code for a simple if loop: #!/bin/bash array="1 2 3 4 5" array2="5 6 7 8 9" if } -gt ${array} ]; then echo "${array2} is greater than ${array}!!" fi the error is ./script8: line 9: [: too many arguments ./script8: line 9: [: too many arguments ./script8: line 9: [:... (10 Replies)
Discussion started by: npatwardhan
10 Replies

3. Shell Programming and Scripting

Simple BASH script not working?

So I need a script that does the following: If a certain user is logged in Run `command` Else Echo “incorrect user” This is my first stab...which doesn't work: #!/bin/bash X="user=`ls -l /dev/console | cut -d " " -f 4`" Y="foobar" echo $X echo $Y (4 Replies)
Discussion started by: doubleminus
4 Replies

4. Shell Programming and Scripting

export not working in Bash shell

Hi Friends, I am presently migrating shell scripts writter in KSH to SH.I am stuck at this place and i am not able to find a work around:- Let the script name is x.sh Below are some of the codes in it... export abc=hello export abc=hi export abc=how When i am trying to compile the script ... (6 Replies)
Discussion started by: amit.behera
6 Replies

5. HP-UX

Why Bash is not working in HP-UX ?

Why Bash is not working in HP-UX ? What is similiar exe which is in HP_UX as Bash? (9 Replies)
Discussion started by: girija
9 Replies

6. Shell Programming and Scripting

Working with bash and date

Hello all, I'm trying to substract 1 minute from the current date and take the hour and minute (for filename purpose). 1) If I want hour an minute from current time I can use: timetmp=$(date +"%H:%M") 2) To substract 1 minute from current time I can use: timetmp=$(date --date "$dte -1... (8 Replies)
Discussion started by: Lord Spectre
8 Replies

7. Shell Programming and Scripting

sed not working in a bash script

Hi friends, I have two files - input and commands I want to read the input and replace a value in it with the contents in commands. My script is like this. Instead of printing the value in the commands file, it is simply printing $cmd in the output file. Any pointers are highly... (1 Reply)
Discussion started by: jacobs.smith
1 Replies

8. Shell Programming and Scripting

Working with grep and Bash

Hi, I am currently working on a Bash shell script that - Downloads a webpage, in this case youtube.com - Extracts Number of views, Extracts Title of video, Extracts User who made it, and lastly Duration. Then I have to Out put this into columns. To me this sounds like crazyness. I'm very new... (6 Replies)
Discussion started by: Njzangel
6 Replies

9. Shell Programming and Scripting

How to run several bash commands put in bash command line?

How to run several bash commands put in bash command line without needing and requiring a script file. Because I'm actually a windows guy and new here so for illustration is sort of : $ bash "echo ${PATH} & echo have a nice day!" will do output, for example:... (4 Replies)
Discussion started by: abdulbadii
4 Replies

10. Programming

Best way to get a bash script working in C

Ahoy friends. Currently i got a bash script running to manage my minecraft servers. All of them are stored in /home/minecraft_servers directory. Using my script im able to start a server (e.g. ./minecraft start ftb_continuum) because server name and server name are the same.(e.g.... (2 Replies)
Discussion started by: Knogle
2 Replies
PKGKDE-OVERRIDE-SC-DEV-LATEST(1)			User Contributed Perl Documentation			  PKGKDE-OVERRIDE-SC-DEV-LATEST(1)

NAME
pkgkde-override-sc-dev-latest - loosen kde-sc-dev-latest Break restrictions SYNOPSIS
pkgkde-override-sc-dev [-bbase_version] [-vversion] DESCRIPTION
pkgkde-override-sc-dev-lastest is a helper utility which can be used to generate a dummy kde-sc-dev-latest package without Breaks field that is present in the original version. Original kde-sc-dev-latest package is used to force KDE Software Compilation modules to be built against the latest version of the KDE Development Platform modules without bumping versions of a bunch build dependencies for each KDE SC module. However, while original kde-sc-dev-latest does not cause problems when building in clean chroots, the restrictions imposed by its Breaks field might be undesirable on the maintainer system when: o the maintainer wants to (test)build KDE module version X.Y.A against KDE Development Platform X.Y.B where (A > B); o the maintainer builds a new upstream version of the some KDE Development Platform module on the system that has an old version of some KDE Development Platform packages installed. For example, even if kdepimlibs does not build depend on kdebase-workspace-dev, original kde-sc-dev-latest may prevent kdepimlibs X.Y.A to be built on the system which has kdebase-workspace X.Y.B (where A > B) installed. By default, pkgkde-override-sc-dev-latest generates a dummy kde-sc-dev-latest package in the current working directory that is based on the current "candidate" version of the original kde-sc-dev-latest (as per apt-cache policy). You may specify a base version with the -b option. The resulting dummy kde-sc-dev-latest override package will have "base_version+override" as its version unless another one is specified with -v option. Once the package is generated, you can install it like: # dpkg --install kde-sc-dev_<version>+override_all.deb OPTIONS
-bbase_version, --basever=base_version The version of the original kde-sc-dev-latest package to base an override package on. It must be available in the APT database on the system. You may also pass special value "latest" to select the latest available version in the APT database. If you specify "priority", the latest version with the highest priority will be selection. By default (if this option is not specified), candidate version is selected -vversion, --version=version Generate an override package with the specified "version+override" rather than default "base_version+override" version. AUTHOR
Modestas Vainius <modax@debian.org> perl v5.14.2 2011-12-26 PKGKDE-OVERRIDE-SC-DEV-LATEST(1)
All times are GMT -4. The time now is 10:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy