Dave wrote:
I'm trying to run a command (arch -k) and check if the value returned is
'sun4v' or not.
kir...@t2:[~] $ arch -k
sun4v
In fact, I want to do 3 three things
1) Check if the system is Solaris.
2) If it is Solaris, check if 'arch -k' prints 'sun4v'
3) If both 1 and 2 are true, copy
I'm trying to run a command (arch -k) and check if the value returned is
'sun4v' or not.
kir...@t2:[~] $ arch -k
sun4v
In fact, I want to do 3 three things
1) Check if the system is Solaris.
2) If it is Solaris, check if 'arch -k' prints 'sun4v'
3) If both 1 and 2 are true, copy a file.
Sin