11-18-2010
It should change to what?
I expect that if you typed running than it changed, no?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm sure I'm doing something wrong but as I am new to bash shell scripting I'm not sure what:
Here's the code
webalizer.conf is sitting in the same directory as this file which is named webalizer.sh. Can someone tell me if I've got the syntax right -- it that's correct? I'm executing the... (3 Replies)
Discussion started by: xaphalanx
3 Replies
2. Shell Programming and Scripting
Hi all
has anyone got a code snippet of how i can ftp a file automatically by running a simple bash script. I have 4 things
IP address xx.xxx.xx.xx
username=satnam
domain = app.sample.ftp
password= satnam_password
Im not sure how to pull these all together to ftp a file?
any ideas? (1 Reply)
Discussion started by: satnamx
1 Replies
3. Shell Programming and Scripting
I'm just trying to make a script that runs in command line to echo each line in a text file. Everything i found on google is telling me to do it like this but when I run it it just echos removethese.txt and thats it. Anyone know what im doing wrong?
for i in removethese.txt; do echo $i; done
... (4 Replies)
Discussion started by: kingdbag
4 Replies
4. Shell Programming and Scripting
Hi guys, I'm new to the forum so forgive me if I'm sounding ... daft.
I currently work in a Tech Support role. Every day we have to generate data by running around 10 .sh scripts. I was thinking instead of having to ./filename 10 times is it possible to right a new script that will run these for... (16 Replies)
Discussion started by: JayC89
16 Replies
5. Shell Programming and Scripting
I am writing a shell script in bash one of the thing I want to show is size of export /home
du -sk /export/home/oracle | cut -c 1-5
echo "kbytes"
when I run the script kbytes shows up in the second line, How can I append kbytes on the same line, such as
61233 kbytes
please guide
thanks (2 Replies)
Discussion started by: Tirmazi
2 Replies
6. Shell Programming and Scripting
to gather the cpu utilization from a system in 5 minute intervals and direct output to file.
I'm new at scripting and while this seems like an easy task I'm confused on where to start. thanks for any help (1 Reply)
Discussion started by: mkeyes001
1 Replies
7. Shell Programming and Scripting
Hi to everyone here,
I'm a new user and relatively-new linuxer.
I'm trying to write a script that checks if every file from a directory is present in a given list and if not, delete it.
should be simple. But I think I've done half the work only:
this is to create the reference list:
for c... (2 Replies)
Discussion started by: dentex
2 Replies
8. Shell Programming and Scripting
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
9. Shell Programming and Scripting
I've put together a very simple bash script to check for software patches and bounce the server, once complete. This is on a Mac server. The script works just fine upon execution, however, cron responds with:
/bin/sh: /usr/local/bin/softwareupdates.sh: No such file or directory
Crontab:
... (6 Replies)
Discussion started by: Nvizn
6 Replies
10. Shell Programming and Scripting
Hello,
when running the scripts below I am not getting message bb2.
Can you please help?
#!/bin/bash
TLOG=/tmp/bb/amatest.log
FTPRESULTS=/tmp/bb/amlist
export TLOG FTPRESULTS
>$TLOG
>$FTPRESULTS
echo bb1
sftp -oPort=2222 XXXXXXXXXXXXX@sftp.userssedi.com <<EOF
cd... (5 Replies)
Discussion started by: biljana
5 Replies
LEARN ABOUT SUNOS
setuname
setuname(1M) System Administration Commands setuname(1M)
NAME
setuname - change machine information
SYNOPSIS
setuname [-t] [-n node] [-s name]
DESCRIPTION
The setuname utility changes the parameter value for the system name and node name. Each parameter can be changed using setuname and the
appropriate option.
Either or both the -s and -n options must be given when invoking setuname.
The system architecture may place requirements on the size of the system and network node name. The command will issue a fatal warning mes-
sage and an error message if the name entered is incompatible with the system requirements.
OPTIONS
The following options are supported:
-n node Changes the node name. node specifies the new network node name and can consist of alphanumeric characters and the special
characters dash, underbar, and dollar sign.
-s name Changes the system name. name specifies new system name and can consist of alphanumeric characters and the special charac-
ters dash, underbar, and dollar sign.
-t Temporary change. No attempt will be made to create a permanent change.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5)
NOTES
setuname attempts to change the parameter values in two places: the running kernel and, as necessary per implementation, to cross system
reboots. A temporary change changes only the running kernel.
SunOS 5.10 9 Jul 2003 setuname(1M)