As a found it at nearly every beginner guide, with the os.listdir option I am listing all files and folders within my directory and the os.path.isdir is used to find out that one is a file or a directory.
So I just the tried the following piece of code:
If I just remove the if, I am able to print all files and directories, but that tiny if clause is just not working. Any idea where my fault is?
I created a RAID 5 array and when I list out the attributes of the "hdisk" it reports back raid_level = 5 but the RAID level of the array = false. What does this actually indicate about my array? I've never paid much attention to this until now since I have a disk reporting failure I want to make... (0 Replies)
We have requirments to not allow a userid login abilities but allow users to 'su' to it. In solaris I normally set the shell in /etc/passwd to bin/false. THis does not work on Linux, any suggestions would help. (1 Reply)
i want to delete every newline and every line which starts with "RECORD......." in a file.
FILE:
Record 61391 in base BROCKHAUS (Timestamp: 2008-04-09 11:38:38)
UNTERTITEL :
Gräfin (seit 1707 Reichsgräfin) von, * Schwerin 4. 2. 1686, + Berlin
21. 10. 1744; wurde
Record 61392 in base BROCKHAUS... (4 Replies)
Hi,
I'm new to UNIX and am trying to learn shell scripting in order to work on an interface that I inherited when a co-worker left. I need to be able to check to see whether a file exists to determine whether the FTP has taken place, but in testing, the if statement always evaluates as false,... (3 Replies)
Hi All,
I am using the below Script to enter a line in the File:
#!/bin/ksh
# To delete the last line if it contains the pattern Redirect permanent / Virgin Atlantic Airways - Popup
echo "Enter the URL that should point to the particular microsite"
read url
# To delete the last line if it... (0 Replies)
Why this happens?
How to solve this?
$netstat -na |grep 9325
tcp 0 0 127.0.0.1:9325 127.0.0.1:9325 ESTABLISHED
When a client socket repeatedly tries to connect to an inactive(no server socket is listening on this port) local port,connect succeeds.
... (1 Reply)
Checking configuration access files for an AIX server, left me wondering about this :confused::
If a user is added to system group, it gets gid=0 with some security risks because it gets some root kind of file access level.
Is this insecure condition kept if the user has admin variable... (0 Replies)
OS Platform : Oracle Linux 6.5
We are creating a shell script to purge old log files . It uses find command with rm in it.
The syntax is
find <Path of Log Directory> -exec rm -fr {} \;
Example:
find /tmp/test3 -exec rm -fr {} \;
For rm command , we use -r option to... (4 Replies)
I have this code that sometimes return a false value and the code inside the if statement gets executed and error out. Any idea why? thanks.
So I set a debug and see what the value for $ScriptElapsedTime
Here is the value I got ScriptElapsedTime='03:20'. Base on this value the if... (10 Replies)
Hi
I have written a script to send email alerts when load of my linux server reaches max point
I keep getting false emails thought the load is normal , looks like same email is generated again and again - called from cron tab
checked if the tempfile is present , no it is not , cleaned... (22 Replies)
Discussion started by: anil529
22 Replies
LEARN ABOUT DEBIAN
buildtorrent
BUILDTORRENT(1) User Commands BUILDTORRENT(1)NAME
buildtorrent - a torrent file creation program.
SYNOPSIS
buildtorrent [OPTIONS] -a announceurl input output
buildtorrent [OPTIONS] -a announceurl -f filelist -n name output
DESCRIPTION
buildtorrent is a torrent file creation program. Given an announce url and an input file or directory, buildtorrent generates an output
.torrent file that can be used by torrent clients.
OPTIONS -a announce, --announce=url
Announce URL (required).
-f filelist, --filelist=filelist
A text file (or - for standard input) containing a list of files to add to the output torrent file, together with the path to use
inside the torrent. One file is given per line, use / as path separator for the torrent path, use | to separate the filesystem path
from the torrent path. Backslash can be used to escape newlines and | characters inside names. For example:
/data/files/linux.iso|bin/linux.iso
/data/files/linux.txt|doc/linux.txt
Using this option requires that the --name option be used.
-n name, --name=name
Specify the name for the torrent. Usage of this option is required when the --filelist option is used, in which case it specifies
the name of the torrent directory. Usage without a file list overrides the name of the directory or file given on the command line.
-A announces, --announcelist=announces
Additional announce URL list. Use , to separate outer level lists, and | to separate inner level items; for example:
a,b1|b2,c
-w webseeds, --webseeds=webseeds
Additional WebSeed URL list. Use , to separate items; for example:
a,b,c
-l length, --piecelength=length
Piece length in bytes (default 262144).
-L length, --piecesize=size
Use 2^size as piece length (default 18) (overrides -l ).
-c comment, --comment=comment
User comment (omitted by default).
-p private, --private=private
Private flag (either 0 or 1).
-D, --nodate
Omit the creation date field.
-C, --nocreator
Omit the created by field.
-m, --md5sum
Add an md5sum field for each file.
-s, --show
Show generated torrent structure.
-S, --showall
Show generated torrent structure, including piece data.
-q, --quiet
Quiet operation with reduced output.
-V, --version
Show the version string.
-h, --help
Show a help screen with brief usage information.
AUTHORS
Claude Heiland-Allen (claudiusmaximus@goto10.org)
SEE ALSO createtorrent(1), mktorrent(1)
http://wiki.theory.org/BitTorrentSpecification
http://bittorrent.org/beps/bep_0012.html
http://www.getright.com/seedtorrent.html
0.8 January 2010 BUILDTORRENT(1)