Hey there, I'm a total newbie unix guy here and just picking this stuff up. Have a very small script I put together that works fine from the command line but not once I put it in a cron job. Searched and found this thread and am wondering it it has something to do with setting variables, though the... (7 Replies)
I have a very basic script that essentially sends a log file, via FTP, to a backup server. My cron entry to run this every night is:
55 23 * * * /usr/bin/archive_logs
The script runs perfectly when executed manually, and actually worked via cron for about three weeks. However, it mysteriously... (3 Replies)
Hi all-
I'm trying to search through some .gz log files to verify certain feeds have passed through our app.
I have a small script that I wrote in hopes that I could automate the checking but haven't been able to get the zgrep to work. When I copy it to the command line directly it works... (2 Replies)
When I run this code from the command line works
spinel.middlebury.edu:/u02/sct/banner/bandev2/middlebury/shl:DEV2$ ls ef*
eftseq.dat
spinel.middlebury.edu:/u02/sct/banner/bandev2/middlebury/shl:DEV2$ file_seq=$( < eftseq.dat) ... (1 Reply)
Ubuntu 9.10 is my linux distro
Based on forums they say that the problem is with environment .
here is my case:
login as user, then sudo -s
using this command: s3cmd put file s3://bucket >>worked!
now here is the simple script intended for testing:
#! /bin/bash
env >/tmp/cronjob.log... (1 Reply)
Hey guys. Hopefully this is an easy one but having reference similar problems on the web I still can't fix it.
I am doing a recursive find and replace from a script. Of course I could just run the damn thing from the command line but it's bugging me now and want to get it working.
grep -rl... (4 Replies)
Hi All,
This command works when I type it on but when I run the batch file it doesn't..any ideas why?
attrib.exe * | find /c /v "" >filecount.txt (1 Reply)
I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes
CC=`which gcc`
CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
OSX 10.9
I am building a script that evaluates the difference between 2 files. Here is a command that does not work transparently.
Running this command in Terminal yields great results; however when I put that line in a .sh script, I get the errors shown below. Am I doing something silly?
... (1 Reply)
The below command moves all the .vcf files into the directory.
cp /home/cmccabe/Desktop/test/vcf/overall/stats/*.vcf /home/cmccabe/Desktop/NGS/annovar
When I use a bash wrapper the target.txt gets created but the text files do not get copied. All the paths are the same, but not sure why... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT DEBIAN
tomoyo-loadpolicy
TOMOYO-LOADPOLICY(8) System Administration Utilities TOMOYO-LOADPOLICY(8)NAME
tomoyo-loadpolicy - load TOMOYO Linux manually
SYNOPSIS
tomoyo-loadpolicy [option]
tomoyo-loadpolicy [option] [remote_ip:remote_port]
DESCRIPTION
This program reads TOMOYO Linux policy from standard input and loads it into the kernel.
OPTIONS -e Append to /sys/kernel/security/tomoyo/exception_policy.
-ef Overwrite /sys/kernel/security/tomoyo/exception_policy.
-d Append to /sys/kernel/security/tomoyo/domain_policy.
-df Overwrite /sys/kernel/security/tomoyo/domain_policy.
-m Append to /sys/kernel/security/tomoyo/manager.
-p Append to /sys/kernel/security/tomoyo/profile.
-s Append to /sys/kernel/security/tomoyo/stat.
remote_ip:remote_port
Write to policy on a remote system via an agent waiting at port remote_port on IP address remote_ip.
EXAMPLES
Append a line to exception policy
echo "acl_group 0 file read proc:/meminfo" | tomoyo-loadpolicy -e
Remove a line from exception policy
echo "delete acl_group 0 file read proc:/meminfo" | tomoyo-loadpolicy -e
Append a line to domain policy
( echo "<kernel>"; echo "file execute /sbin/init" ) | tomoyo-loadpolicy -d
Replace currently loaded domain policy
tomoyo-loadpolicy -df < /etc/tomoyo/domain_policy.conf
Append to policy remotely
tomoyo-loadpolicy -d 192.168.1.1:10000 < /etc/tomoyo/192.168.1.1/domain_policy.conf
Remove a line from "/sys/kernel/security/tomoyo/manager"
echo "delete /usr/sbin/tomoyo-queryd" | tomoyo-loadpolicy -m
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.
SEE ALSO tomoyo-savepolicy(8), tomoyo-editpolicy(8), tomoyo-editpolicy-agent(8), tomoyo-init(8)
See <http://tomoyo.sourceforge.jp> for more information.
tomoyo-tools 2.5.0 2012-04-14 TOMOYO-LOADPOLICY(8)