simple script in solaris

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting simple script in solaris
# 1  
Old 10-06-2009
simple script in solaris

i am using
SunOS ReportServer 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-2500

and i just wrote a simple script like below:


df -k

exit 0

when i run it i get response as below not found

please what am i doing wrong
# 2  
Old 10-06-2009
#! /bin/sh
# 3  
Old 10-06-2009
i still get the same error response
# 4  
Old 10-06-2009
how do you run the script? please post the screenoutput inside CODE tags... like:

# output blabla

# 5  
Old 10-06-2009
Most likely the current directory is not in your path. Use the full name including path or in case your current directory is containing the script:

# 6  
Old 10-06-2009
./ not found

i just tried that again,
its strange why it does not work
# 7  
Old 10-06-2009
this looks like you are in the wrong directory... please post the output of:

ls -l

Last edited by DukeNuke2; 10-06-2009 at 10:09 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Can someone please show me a very simple "expect" script to change password in Solaris please?

Ladies & Gents, Can one of you gurus please show me a very simple "expect" script to change the password in Solaris in a script, please? Nothing fancy, no error checking, no nothing. Just to change the password of a new user, it's all. Many thanks in advance. U guys have honestly earned my... (1 Reply)
Discussion started by: Hiroshi
1 Replies

2. Solaris

Good and simple guide to configuring DHCP on Solaris 11?

I've been learning Solaris 11 for the past couple weeks and have been curious about setting up a DHCP server. Is there a good guide to start me off? Something pretty simple that I can understand? I read Oracle's documentation on it but I want something a little easier to understand. Thanks! (1 Reply)
Discussion started by: austinramsay
1 Replies

3. Shell Programming and Scripting

Help making simple perl or bash script to create a simple matrix

Hello all! This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician. Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix: ... (16 Replies)
Discussion started by: torchij
16 Replies

4. Solaris

Two simple questions about Solaris DCHP and Samba

I have two simple questions First is :can dhcp server NATIVE of solaris perform dhcp updates of bind via dnssec like dchpd on linux? Second: Is possible to build a pdc with samba and iplanet ldap server?Or is better with openldap? I never found howto or discussions about iplanet server. Thanks (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

5. Shell Programming and Scripting

[awk] Simple things not working on Solaris 10

Hi, Don't know if this is Solaris 10 or that the shell on Solaris 10 is working against me. But this works fine on HP-UX 11i, but not on Solaris 10: # cat /tmp/test_file 1:een 2:twee 3:drie # cat /tmp/test_file | /bin/nawk 'END {print $NF}' # cat /tmp/test_file | /bin/nawk '{} END... (5 Replies)
Discussion started by: ejdv
5 Replies

6. Solaris

IP Forwarding on Solaris 10 (should be simple, but isn't!)

I'm having a hard time getting IP forwarding to work. I'll eventually have several interfaces, but all that matters for now is that two of them actually be able to IP forward. I have no network interfaces in the global zone, but both interfaces are in the same zone, Common. The IPs I've been... (0 Replies)
Discussion started by: cfalcon
0 Replies

7. Solaris

How to create a simple background script on Solaris

I have a local account for a unix server. The idle timeout for the account is around 10 mins. I have to login to the server multiple times during the day. Is there a way to increase the idle timeout or may be a script that I can run on background so it is not idle. Something like echo date every 9... (3 Replies)
Discussion started by: vinaysa
3 Replies

8. Solaris

Solaris JumpStarting?... Simple Yes/No Question... Unless the answer's 'No'

I'm reading through this guide, BigAdmin Feature Article: Using Solaris JumpStart With the Solaris 10 OS for x86/x64 Platforms, and I was wondering if there was more to the bash scripts than just the example given (see above link) like for begin1 and begin2 and finish1 and finish2. I don't know... (3 Replies)
Discussion started by: Bradj47
3 Replies

9. Shell Programming and Scripting

simple CSH Script behaves differently on Solaris and RedHat Linux

I have a simple csh-script on a Solaris Workstaion which invokes the bc calculator: #!/bin/csh set shz=2 set zshift=5 set shzp=`bc -l <<END \ scale = 3 \ -1. * $shz + $zshift \ END` echo $shzp The result ($shzp) in this case is 3 (-1*2+5). It works fine on Solaris 8. ... (2 Replies)
Discussion started by: two reelers
2 Replies
Login or Register to Ask a Question