Search Results

Search: Posts Made By: sankasu
1,108
Posted By sankasu
How to pass values to a script called from within another script in shell?
Need ideas on how to achieve the below.

We have a script say "profile.sh" which internally calls another existing script called "name.sh" which prompts for the
name and age of a person upon...
5,930
Posted By sankasu
In which case is there a possibility to evaluate...
In which case is there a possibility to evaluate the output of the command to another variable.
eg.

if ( $(readlink -f <path> | cut -d '/' -f7)" == "$ver"); then
5,930
Posted By sankasu
<path> = path to the symbolic link. -f7 =...
<path> = path to the symbolic link.
-f7 = relates to the version which is 7th field in the above path.

The output of the command is 1.0.1
5,930
Posted By sankasu
Thanks admins.. I had actually tried that but...
Thanks admins.. I had actually tried that but still no luck .

lnk="$(readlink -f <path> | cut -d '/' -f7)"
echo "$lnk"

Output

++ readlink -f <path>
++ cut -d / -f7
+ lnk=
+ echo ''
...
5,930
Posted By sankasu
The output suggests the same thing which I...
The output suggests the same thing which I mentioned in my problem statement.

++ readlink -f <host>:<sym lnk>
++ cut -d / -f7
+ set lnk =
+ echo

Doesnt seem to be assigning anything in the...
5,930
Posted By sankasu
How do I assign the output of a command to a variable within a loop in bash?
In the else of the main if condition .

else
set lnk = $(readlink -f <path> | cut -d '/' -f7)
echo "$lnk"
if [[ "$lnk" == "$ver" ]]

When I run the above on command...
Forum: Solaris 04-14-2019
3,772
Posted By sankasu
How to copy a tar file on a series of remote hosts and untar it on those hosts?
Am trying to copy a tar file onto a series of remote hosts and untar it at the destination. Need to do this without having to do multiple ssh.
Actions to perform within a single ssh session via...
Forum: Solaris 07-15-2013
2,210
Posted By sankasu
Thank you everyone..
Thank you everyone..
Forum: Solaris 07-12-2013
2,210
Posted By sankasu
@Jlliagre: Do you mean that I can install...
@Jlliagre: Do you mean that I can install Solaris(Oracle) 10 on a non-sparc x86 machine(VM)

@bitlord:Thanks mate that was quite useful

---------- Post updated at 08:20 PM ---------- Previous...
Forum: Solaris 07-11-2013
2,210
Posted By sankasu
Thanks Hick. Anyone who can help me with a...
Thanks Hick.

Anyone who can help me with a link to the last released version of Open Solaris(x86).
Forum: Solaris 07-11-2013
2,210
Posted By sankasu
As I understand we cant install sun solaris 10 on...
As I understand we cant install sun solaris 10 on a non sparc machine.I was wanting to install solaris 10 x86 on a Virtual Machine and felt that open solaris was the best candidate for it.
Do you...
Forum: Solaris 07-11-2013
2,210
Posted By sankasu
Open Solaris Installable
Hi,

Can anyone help me with the latest version of open solaris x86 and a link from where I can download it?
I am unable to find one online.
20,652
Posted By sankasu
Well ofcourse I did.. #!/bin/sh ...
Well ofcourse I did..


#!/bin/sh

create_db(){
isql -Usa -Paaa123 -S$DB_SERVER <<- BOF
sp_addlogin $Conf, aaa123
go
sp_addlogin mb, aaa123
go
create database $Conf on...
20,652
Posted By sankasu
Thanks Scott the indentation was indeed the...
Thanks Scott the indentation was indeed the problem.But when I run this chunk of code nothing actually happens it executes but no action is performed..I was hoping that the script would logon to a...
20,652
Posted By sankasu
warning: here-document delimited by end-of-file
Hi ,

My chunk of code is as follows:

create_db(){
isql -Usa -Paaa123 -S$DB_SERVER <<- BOF
sp_addlogin $Conf, aaa123
go
sp_addlogin mb, aaa123
go
create database $Conf on...
5,144
Posted By sankasu
Thanks pamu that works just fine..and any idea...
Thanks pamu that works just fine..and any idea how i can tackle this.

allthe123.L4best is the value and just get 123.L4 to be printed.
5,144
Posted By sankasu
Thanks mate but my bad that I was not clear with...
Thanks mate but my bad that I was not clear with my query.
the word JUSTDOIT is like repeated 10 times and then the word "DO" changes to a number(5.24) so in other words I need to get the value...
5,144
Posted By sankasu
Search pattern within file using sed..
Hi,

Could someone help me in figuring out a way using which i can search for a specific pattern.

Eg. JUSTDOIT..I have to print just the word "DO" from "JUSTDOIT"

If the same word JUSTDOIT...
Forum: Solaris 07-30-2010
23,642
Posted By sankasu
Thanks guys..but finally i reinstalled the OS so...
Thanks guys..but finally i reinstalled the OS so the problem is now taken care of....
Forum: Solaris 07-26-2010
23,642
Posted By sankasu
Yes..i have tried through the XSCF as well but...
Yes..i have tried through the XSCF as well but unable to get through.Its an M3000 machine.Any clue what else can be done here..
Forum: Solaris 07-23-2010
23,642
Posted By sankasu
Hey, Thanks for getting back.But the...
Hey,

Thanks for getting back.But the problem here is that i cant login into the machine.neither ssh nor telnet.only when i can login can i check something on the machine.
Any clue how else can i...
Forum: Solaris 07-22-2010
23,642
Posted By sankasu
Unable to login using ssh,telnet onto my solaris machine with solaris 10 installed
Hi,

I am unable to login into my terminal hosting Solaris 10 and get the below error message

"Server refused to allocate pty
ld.so.1: sh: fatal: libc.so.1: open failed: No such file or...
Forum: Solaris 12-16-2009
1,698
Posted By sankasu
Need to download new packages..
Hi All,

Can anyone please let me know as to where i can download any new packages that are meant for solaris 5.10 Generic_127127-11 from the internet?
Sparc based systems.
Forum: Solaris 11-24-2009
7,087
Posted By sankasu
How to mount a windows drive on Solaris..
hi All,

I have two machines one which has Open solaris as its operating system and another which has Window Xp professional.I would like to mount a drive from the Windows machine onto the open...
Forum: Solaris 10-14-2009
2,238
Posted By sankasu
Restore a database on solaris..
hi All,

Can anyone help me with the set of commands which are used to restore maybe a sybase database on solaris..
Showing results 1 to 25 of 57

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