Sponsored Content
Top Forums Shell Programming and Scripting shell script queries: $home; broadcast ping Post 27247 by bionicfysh on Thursday 29th of August 2002 05:55:07 AM
Old 08-29-2002
Data shell scripting...

Hi guys,

very sorry but I tried your recommendations, and this is what I get:

in script: myscript

ls ~
ls ~root
user=you
ls ~$user

OUTPUT
~: Ce fichier ou ce rÚpertoire n'existe pas
~: This file or directory does not exit

~root: Ce fichier ou ce rÚpertoire n'existe pas
~:root: This file or directory does not exit

~you: Ce fichier ou ce rÚpertoire n'existe pas
~you: This file or directory does not exit


Thanks for any pointers


N.B thanks for the ping trick... now my users can ping without doing su - ...!
does anyone know how to do a 'broadcast ping'
e.g ping 192.168.1.0

returns something like:
found 192.168.1.1
found 192.168.1.2
found 192.168.1.3
found 192.168.1.4
etc....

Da Bionic 1
:-)
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Sh Shell Script executing remote SQL queries

Hi there folks, I am trying to execute remote sql queries on an Oracle server. I would like to save the result of the executed sql queries on a text file, and send that text file as an attachment to an email address. Could anyone give me an idea on how the above could be achieved? Any help... (2 Replies)
Discussion started by: Javed
2 Replies

2. UNIX for Dummies Questions & Answers

shell script for sql queries

Hi All, I have written 4 sql queries . Now I want to write one SHELL SCRIPTING program for all these queries... i.e 1.select * from head; 2. select * from detail; 3. delete from head; 4. delete from detail; Please let me know how to write a shell script... Thank you (1 Reply)
Discussion started by: user71408
1 Replies

3. Shell Programming and Scripting

Multiple MySql queries in shell script?

Hi guys, i know how to run a single query using mysql embedded in a shell script as follows: `mysql -umyuser -pmypass --host myhost database<<SQL ${query}; quit SQL` However, how would i be able to run several queries within the same connection? The reason for this is i am creating... (3 Replies)
Discussion started by: muay_tb
3 Replies

4. Shell Programming and Scripting

How to extract queries using UNIX shell script?

Hi, I have an input file which have many lines,from which i need to extract only the complete sql statements and write this alone to an output file. please help us in this. Regards Meva (7 Replies)
Discussion started by: meva
7 Replies

5. Shell Programming and Scripting

Nested SQL queries within Shell script

Hi, Would someone know if I can fire nested sql queries in a shell script? Basically what I am trying to do is as follows: my_sql=$(sqlplus -s /nolog<<EOF|sed -e "s/Connected. *//g" connect... (2 Replies)
Discussion started by: shrutihardas
2 Replies

6. Shell Programming and Scripting

Shell script to give broadcast and network address

Hello, I am running a post script in autoyast where I am trying to set the broadcast and network address. I have the ip address and netmask already (reading from a file).. I saw the post from fpmurphy but it is using ksh which isn't an option in autoyast. Thanks in advance! (3 Replies)
Discussion started by: bloodclot
3 Replies

7. Shell Programming and Scripting

Executing set of sql queries from shell script

Hi All, I tried executing set of queries from shell script but not able to capture the input query in the log file. The code looks something similar to below sqlplus user/pwd@dbname << EOF > output.log $(<inputfile.txt) EOF The above code is capturing the output of queries into... (9 Replies)
Discussion started by: loggedin.ksh
9 Replies

8. Linux

How to store count of multiple queries in variables in a shell script?

how to store the count of queries in variables inside a filein shell script my output : filename ------- variable1=result from 1st query variable2=result from 2nd query . . . . (3 Replies)
Discussion started by: sanvel
3 Replies

9. Shell Programming and Scripting

run sql queries from UNIX shell script.

How can i run sql queries from UNIX shell script and retrieve data into text docs of UNIX? :confused: (1 Reply)
Discussion started by: 24ajay
1 Replies

10. Shell Programming and Scripting

Issue on executing db2 queries through shell script

hi i am trying to execute db2 queries through shell script. it's working fine but for few queries is not working ( those queries are taking time so the script is not waiting to get the complete the execution of that query ) could you please any one help me on this is there any wait... (1 Reply)
Discussion started by: bhaskar v
1 Replies
prtdscp(1M)						  System Administration Commands					       prtdscp(1M)

NAME
prtdscp - display DSCP IP addresses SYNOPSIS
prtdscp [-v ] prtdscp [-v ] -h prtdscp [-v ] -d prtdscp [-v ] -s DESCRIPTION
prtdscp displays the IP addresses associated with a Domain to Service Processor Communications Protocol (DSCP) link. If no arguments are specified, prtdscp displays the IP addresses on both ends of the DSCP link. The IP address of either the Service Processor or domain side can be displayed separately by the use of the -s or -d options, respectively. OPTIONS
The following options are supported: -v Verbose mode. Print additional details about the program's internal progress to stderr. -h Help. Print a brief synopsis of the program's usage and exit. All other command line arguments are ignored. -d Display only the local domain's IP address. -s Display only the remote Service Processor's IP address. EXAMPLES
Example 1 Displaying both addresses The following example displays both the local domain's IP address and the remote SP's IP address: # prtdscp Domain Address: 192.168.103.2 SP Address: 192.168.103.1 Example 2 Displaying the local IP address The following example displays the local domain's IP address: # prtdscp -d 192.168.103.2 Example 3 Displaying the remote IP address The following example display the remote SP's IP address: # prtdscp -s 192.168.103.1 ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWdscpr.u, SUNWdscpu.u | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) SunOS 5.11 25 Apr 2006 prtdscp(1M)
All times are GMT -4. The time now is 01:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy