Linux-Noob Forums

Full Version: Unix Scripts ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Hi @ll,

 

need help in scripting.

 

I want to start every our a ipcs -a command and the output shall be stored in a sema.txt file. After every hourly command a new txt file should be created.

 

Where can i learn this ???

 

Cu,

 

Sniffy


a cron job will help you here

 

be more specific as to exactly what you want the script to do

 

cheers

 

anyweb


any help ???

a script would be better i think!

 

cu,

 

sniffy


i solved it myself !

 

Here the solution:

 

#!/bin/sh

# sema-script

ipcs -s > sema.txt

 

 

The time this script is executed can you make with cron !

 

Cu,

 

sniffy