10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear every one,
I am working with the data of my lab program and I have to do many times by the same list of some commands (grep, then save to file, then use awk to delete odd lines, save to file, use awk to delete even lines, save to file...).
Is there any way to save a list of command which I... (4 Replies)
Discussion started by: phamnu
I am testing sudo and I want to test it. Can anyone please let me know few commands (of course other than shutdown, reboot etc. as I can't reboot the box) on AIX that can be run by ROOT only.
---------- Post updated at 07:43 PM ---------- Previous update was at 07:38 PM... (5 Replies)
Discussion started by: prvnrk
3. Shell Programming and Scripting
I have written a script which which is working fine to a certain logic of it. But i want a part of the script to run two commands at 00:10 hrs every day. These two command are
1. rm -rf /path/to/folder
2. mail the content of a file.
How do i achieve this. Thanks.
... (4 Replies)
Discussion started by: Siddheshk
4. Shell Programming and Scripting
I'm trying to write a script that in the end will from one central location hop to a bunch of servers and then run a series of ping tests. The thing is, the list of devices that needs to be pinged is going to be different for each server. So what I want to do is be able to do is read through the... (0 Replies)
Discussion started by: DeCoTwc
5. UNIX for Dummies Questions & Answers
I need execute a script every 30 minutes. As might be done without using cron
Thx. (6 Replies)
Discussion started by: pepeli30
i want ur help! it is urgent!!
else if (pid>0)
timer(5); //(command 1)timer is a function that count up to 5sec
perror("error");... (3 Replies)
Discussion started by: nicos
7. Shell Programming and Scripting
Hello guys, I am new at shell scripting and I want to create a script that runs several commands at a time, ie: uptime, w, df -h and so on and send the output of this commands to a text file so it can be send via email at a certain time using crontab.
Any help will be much appreciated! (4 Replies)
Discussion started by: agasamapetilon
8. Shell Programming and Scripting
Look what im doing:
I need to run a process from a SERVER1 to SERVER2, SERVER3 and SERVER4.
The shell of the process is in each SERVER (2 to 4)
So from SERVER1 i do:
for i in SERVER2 SERVER3 SERVER4
rsh $i '
The problem is: each process.sh... (2 Replies)
Discussion started by: lestat_ecuador
9. Shell Programming and Scripting
i want to run a process in certain date and hour (like feb 2007 ,hour 3 p.m)
how shell i write it
my script call cs-update-pr
another question :as the script running, will i see it as process ?ho does it run
background? and if not - how can i define to him to run background?
thanks... (3 Replies)
Discussion started by: naamas03
I am working on Sun Solaris 5.7. I am trying to read the running time of a process through a C program.
One way I am reading it is by using the command ps -<pid> -f
The other way is from the struct psinfo_t which is there under /proc/pid/psinfo.
However, the two times are... (1 Reply)
Discussion started by: hmurali
yum - Yellowdog Updater Modified shell
yum shell [filename]
yum includes an interactive shell for conducting multiple commands or sets of commands during a single execution of yum. These commands can
be issued manually or passed to yum from a file. The commands are much the same as the normal yum command line options. See here yum(8) for
that information. There are a few additional commands documented below.
args: debuglevel, errorlevel, obsoletes, gpgcheck, assumeyes, exclude
If no value is given it prints the current value.
If value is given it sets that value.
list: lists repositories and their status
enable: enable repositories. option = repository id
disable: disable repositories. option = repository id
list: lists the contents of the transaction
reset: reset (zero-out) the transaction
solve: run the dependency solver on the transaction
run: run the transaction
The following are examples of using the yum shell.
list available packagename*
groupinfo 'Some Group'
That will list available packages matching the glob 'packagename*'. It will return information on the group 'Some Group' It will
then queue the following commands into the transaction: install foo, remove bar, update baz. Then the 'run' command will resolve
dependencies for the transaction commands and run the transaction.
See the Authors file included with this program.
There of course aren't any bugs, but if you find any, they should be sent to the mailing list: firstname.lastname@example.org or filed in bugzilla.
Seth Vidal yum(8)