Search Results

Search: Posts Made By: oompiebmf
Forum: Red Hat 11-14-2013
2,137
Posted By Corona688
You need to be root to run fdisk, there's safer...
You need to be root to run fdisk, there's safer ways in modern Linux. You can run this as a normal user:

#!/bin/bash

BLOCKS=0

# The special /sys/ folder contains device information, not...
1,572
Posted By PikK45
You can also make use of export command :) ...
You can also make use of export command :)

a.sh
#!/bin/sh
echo "Testing 1st script"
x="Came from a.sh"
export $x
b.sh

b.sh
echo "Testing 2nd script"
echo $x
x=$x"Added at b.sh"
echo $x...
1,572
Posted By hanson44
You pass variables from a.sh to b.sh by adding...
You pass variables from a.sh to b.sh by adding the variable after the script name, such as b.sh "$x". You receive variables in b.sh by using $1 for the first variable passed, $2 for the second, etc....
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 12:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy