Shell Script problem in sun 5. 9


 
Thread Tools Search this Thread
Operating Systems Solaris Shell Script problem in sun 5. 9
# 1  
Old 09-30-2008
Shell Script problem in sun 5. 9

Code:
 
root@ne-ocadev-1:/root/scripts>./ARC-PURGE.sh
User check OK
Wrong number of Parameters or no Parameter have been given. USAGE: arc_purge.sh ESPOS/FPRINT espos/fprint

Please explain me what was the problem in my script?

Babu

Last edited by babu.knb; 09-30-2008 at 09:52 AM..
# 2  
Old 09-30-2008
I don;t see any parameters given to the script.Please try giving some parameters to the script.
# 3  
Old 09-30-2008
It tells you what the problem is. You need to supply it with two command-line parameters which are either espos or fprint (whatever those mean; you probably know better than we do).

Your script looks scrabled (it contains HTML entity codes like " etc); perhaps you have blocked JavaScript partially or completely? Try enabling JavaScript when posting.
# 4  
Old 09-30-2008
Thanks for your support.

& Thanks for Era. I got solution for this issue.

Sure. In my feature script i'll enable JavaScript

Thank you in advance.
# 5  
Old 10-01-2008
Quote:
Originally Posted by babu.knb
Code:
 
root@ne-ocadev-1:/root/scripts>./ARC-PURGE.sh
User check OK
Wrong number of Parameters or no Parameter have been given. USAGE: arc_purge.sh ESPOS/FPRINT espos/fprint

Please explain me what was the problem in my script?

Babu
Better if you can paste your script here or else check whether you have passed any external argument with the script.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script newbie, what is problem with my script?

Hello, Ubuntu server 11.10 can anybody help what is problem with my shell script? #!/bin/bash #script to find out currently logged on user is root or not. if ] then echo "You are super" else echo "You are awesome!" fi When I run script, I get following output ./uid: line 3: I... (4 Replies)
Discussion started by: kaustubh
4 Replies

2. Shell Programming and Scripting

problem in shell script

hi every body this is my first thread in this forum, i hope find a solution for my problem i have to write a script bt i still have some error and i don't know how to correct them $ for i in `seq 500 505`; do ./generateur_tache $i tache$i.txt; nprocs=$i; copt$i=`cat tache$i.txt | ./copt.awk` ;... (10 Replies)
Discussion started by: ordo_ordo
10 Replies

3. UNIX for Advanced & Expert Users

Shell script to check the /etc/default/kbd file on a list of SUN servers

Hello, I want to create a shell script that would check the file "/etc/default/kbd" for the entry KEYBOARD_ABORT=alternate on a list of SUN Solaris servers. If this entry is not uncommented (without #) then I should get a message/error report for the host which does not have the setting... (3 Replies)
Discussion started by: mahive
3 Replies

4. Shell Programming and Scripting

Shell script problem

Hello. I am trying to make this shell script bellow work on my server wich should take the names in newacc.cvs and add them to the system. For each user the script should ask me to enter a password for the user im adding and then add them to the system, however my current solution do not work atm... (7 Replies)
Discussion started by: ryzzaze
7 Replies

5. Shell Programming and Scripting

call shell script from perl cgi script problem

hi,, i have perl scipt with line : system('./try.sh $t $d $m'); in shell scipt try.sh i have the line: echo $1 its not printing value of $t that i hav passed..y is it so..i am running it from apache web server (2 Replies)
Discussion started by: raksha.s
2 Replies

6. Shell Programming and Scripting

How to write shell script in sun solaris ?

Hi , I am New to unix shell scripting. So can anybody help me. How to write shell script in sun solaris ? How to run/execute the script ? please post in details. (1 Reply)
Discussion started by: deb.simply
1 Replies

7. Shell Programming and Scripting

Problem in shell script

HOSTNAME=`uname -n` /usr/sbin/clinfo CLUSTERACTIVE=$? # First check whether the Cluster itself is active if then echo Cluster is NOT ACTIVE - EXITING exit 1 fi # Now check whether we are on the active Cluster Node for this Resource Group... (2 Replies)
Discussion started by: babu.knb
2 Replies

8. Shell Programming and Scripting

shell script problem

I have one file list.fdict which contains recordname and its details. like : NAME1:25:C:NAME LINE1: NAME2:25:C:NAME LINE2: CITY:25:C:City: STATE:2:C:State: ZIPCODE:5:N:ZIPCODE: PHONE1:12:C:HOME PHONE: PHONE2:12:C:BUSINESS PHONE: I want to append news records(22 different records line)... (3 Replies)
Discussion started by: amitpansuria
3 Replies

9. Shell Programming and Scripting

Help! Problem with Shell Script.

hi! i have the script which i hit error. anyone knows whats wrong? i have been trying for the last 3 days and don't seems to be able to find an answer. the error i got was sp_out.sh: syntax error at line 51 : `<<' unmatched. However when i move the FTP portion of the script out of the If... (7 Replies)
Discussion started by: pektl
7 Replies

10. UNIX for Advanced & Expert Users

shell script problem

Hi, I have a shell script problem. I'm using /bin/ksh and I have a script that reads a number of table names from a file adn then for each table name, it creates the table in Oracle8i via sqlplus, The main sceleton looks something like: while read tab_name do # BODY done <... (10 Replies)
Discussion started by: strpeski
10 Replies
Login or Register to Ask a Question