01-16-2009
Thank you vary much!!! I'm so gratefull for your help.
Yes this is intersting and i will start learning it very soon !
best regards
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
root@server] df -h
121G 14G 101G 12% /home
147G 126G 14G 91% /backup
We having our site files and images are storing in
/backup/home/user/files/ through symbolic link created in /home directory pointing in /backup directory as following.
root@server] cd /home... (1 Reply)
Discussion started by: mirfan
1 Replies
2. Homework & Coursework Questions
I am very new to Linux/Unix. Kindly assist the following:
I wish to write a bash shell script called how_many_to_go that calculates and prints the number of days, hours, minutes and/or seconds until the end of the current month (based on the output of the date command).
Do ... (2 Replies)
Discussion started by: alobi
2 Replies
3. Shell Programming and Scripting
I am newbie to UNIX. I came across this exercise in one the books.Can anyone help me with this question??????
Write a short Bash script that, given the name of a file as an argument,
reads the file name and creates a new file containing only lines which consist
of one word. Here is an example... (4 Replies)
Discussion started by: krthknaidu
4 Replies
4. Shell Programming and Scripting
Hi All
I am a new in scripting language and I would like help for you guys
I would like to create a file named constant.h and search into all files *.m in specific directory for a reg-exp @"LBL_]+" exp: @"LBL_75847" , and write those matchs to constant.h if there are not written (no... (15 Replies)
Discussion started by: molwiko
15 Replies
5. Shell Programming and Scripting
i'm trying to write a bash script that that will automatically extract zip files after the download.
i writed this script
#!/bin/bash
wget -c https://github.com/RonGokhle/kernel-downloader/zipball/master
CURRENDIR=/home/kernel-downloader
cd $CURRENDIR
rm $CURRENDIR/zipfiles 2>/dev/null
... (2 Replies)
Discussion started by: ron gokhle
2 Replies
6. Shell Programming and Scripting
Hi All,
I am unable to write the script for the below requirement.
Requirement:
Main table dir_ancillary table contain three column "dir_ancillary.table_name"," dir_ancillary.text_file_name ", "dir_ancillary.Include" .
This dir_ancillary contain undefined tables in the column... (2 Replies)
Discussion started by: Vineeta Nigam
2 Replies
7. Shell Programming and Scripting
Hi Team
I am trying to put together a nice small script to mount my lvm snapshot
Here are my objectives
1 Check whether snapshot is currently mounted. If so echo umount snapshot and exit from the script.
2 If it's not mounting, check whether the mount point exist, If so, create lvm... (0 Replies)
Discussion started by: fugeulu
0 Replies
8. UNIX for Dummies Questions & Answers
Hello experts, I need help writing individual files from a data matrix, with each new file being written every time there is a blank line:
From this
cat file.txt
col1 col2 col3
6661 7771 8881
6661 7771 8881
6661 7771 8881
col1 col2 col3
3451 2221 1221... (6 Replies)
Discussion started by: torchij
6 Replies
9. UNIX for Beginners Questions & Answers
Hello guys, I need some help. I am new in bash and I don't know how to automate the following script.
head -2 out1 > 1.fasta
sed ‘1,2 d' out1 > out2
rm out1
head -2 out2 > 2.fasta
sed ‘1,2 d' out2 > out1
rm out2
head -2 out2 > 3.fasta
sed '1,2 d' out2 > out1
rm out2
.......... (3 Replies)
Discussion started by: dellia222
3 Replies
10. UNIX for Beginners Questions & Answers
How would I write a value to a physical memory address?
I was able to read a physical memory address (for example, 0x400) using this line:
dd if=/dev/mem count=4 bs=1 skip=$(( 0x400 ))
But I get an error:
dd: 'standard input': cannot skip to specified offset
when I try to write using... (1 Reply)
Discussion started by: rabrandt
1 Replies
LEARN ABOUT DEBIAN
init_policy
INIT_POLICY(8) System Administration Utilities INIT_POLICY(8)
NAME
init_policy - initialize TOMOYO Linux policy
SYNOPSIS
init_policy [option]
DESCRIPTION
This program generates templates for all policy files. However, the output should be reviewed because automatically generated exception
policy may contain dangerous or redundant entries.
This program only needs to be run once.
OPTIONS
--file-only-profile
Create profiles with only file-related functionality enabled.
--full-profile
Create profiles with all functionality enabled. [default]
--use_profile=integer
Set the default profile number for the "<kernel>" domain to the specified integer, which must be between 0 and 255. [default=0]
--use_group=integer
Set the default group number for the "<kernel>" domain to the specified integer, which must be between 0 and 255. [default=0]
--max_audit_log=integer
Set the default maximal audit log entries that the kernel will spool in the /sys/kernel/security/tomoyo/audit interface. This value
must be an integer, and can be set to 0 if audit logs are not required. Maximum memory used can also be controlled via the
/sys/kernel/security/tomoyo/stat interface. [default=1024]
--max_learning_entry=integer
Set the default maximum number of ACL entries automatically added to each domain by the kernel when using learning mode. This value
must be an integer, and can be set to o if you do not need learning mode. Maximum memory used can also be controlled using the
/sys/kernel/security/tomoyo/stat interface.
--grant_log=value
Set whether grant logs should be audited. This value can either be "yes" or "no". [default=no]
--reject_log=value
Set whether reject logs should be audited. This value can either be "yes" or "no". [default=yes]
EXAMPLES
Initialize policy
/usr/lib/tomoyo/init_policy
BUGS
If you find any bugs, send an email to <tomoyo-users-en@lists.sourceforge.jp>.
AUTHORS
Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Main author.
Jamie Nguyen <jamie@tomoyolinux.co.uk>
Documentation and website.
Naohiro Aoto <naoto@namazu.org>
Bug fix for 64bit Gentoo.
SEE ALSO
tomoyo-init(8)
See <http://tomoyo.sourceforge.jp> for more information.
tomoyo-tools 2.5.0 2012-04-14 INIT_POLICY(8)