Linux-Noob Forums
Unix Scripts ? - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: How Do I? (https://www.linux-noob.com/forums/forum-60.html)
+--- Thread: Unix Scripts ? (/thread-2801.html)



Unix Scripts ? - sniffy - 2005-03-07


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




Unix Scripts ? - anyweb - 2005-03-07


a cron job will help you here

 

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

 

cheers

 

anyweb




Unix Scripts ? - sniffy - 2005-03-07


any help ???

a script would be better i think!

 

cu,

 

sniffy




Unix Scripts ? - sniffy - 2005-03-07


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