Hi, I'm manually running below commands to delete files from some directories. Can anyone please help me to automate the script and also let me know how to schedule it in unix crontab. It'll run every alternative day at 6 PM.
Thanks in advance,
I am trying to use a here document to automate testing a perl script however when the perl script hits a system(perl subscript.pl) call, input is no longer entered into this subscript.
here is my script
$ cat test.sh
#ksh
for testcase
do
program <<-EOF | tee -a funcscnlog.log
y... (3 Replies)
Hi All,
I need to write a UNIX script that automates the sftp process. I should be able to do a sftp to a secure box and get a file from there. I am having a problem doing this because no matter what I do, when I run my script, I get a prompt at command line asking for a password. How could I... (34 Replies)
Hi All,
./procdure.ksh which opens the below the menu, I want to build a script which will press 4 and run the Sector Data Automatically (instead of pressing option 4 manually)
Is there any way for this, please let me know...
1) FX Rates MDU 9) Fidessa Cash... (7 Replies)
hi friends,
I am trying to automate the daily monitoring process of UNIX server and it's processes. the script are below
i executed the above script using ksh -x monitortest1.sh in root login . It shows error at some lines .
1. i logged in using root ,but it... (8 Replies)
Hi,
Could you please help to solve the below issue...
my requirement is automate the SFTP between UNIX and Windows server.
I want to get and put some files to UNIX AIX machine(SFTP client) to Windows server(SFTP server).
For that, i have generated key pair (private/public) in my AIX machine .... (6 Replies)
Hi,
New member here looking for help. This might not be a post for the 'VERY basics' section, so feel free to move it to somewhere more appropriate.
I've created a script that searches my computer for video files, creates a list of these files, and selects a number of random entries to play in... (2 Replies)
Hi All,
Can I automate a script when some one trying to 'vi' (open) a file.
For Example, I am having a file named 'SecuredShell.sh'.
when a user types " vi SecuredShell.sh " in unix command prompt a script named secure.sh needs to be automated.
Can this be possible. if Yes please guide... (2 Replies)
Hi all,
I have a task on my plate which is of high priority.
I need an automated email alert that checks FTP notices subdirectory on a daily basis and forwards any word files to a group of people. This word files gets created whenever there is an issue with FTP connectivity.
Please help...... (1 Reply)
Hi all,
I need to execute a script on a remote machine that are connected to the network.The basic requirement is to write a script which will login in remote machine and then execute the other script automatically placed in remote machine.So that I need to execute the remote machine script... (3 Replies)
Dear all,
I I want to login to my Linux machine using putty and then run some script from Windows machine.we can do it after loging it and then execute the script by typing it in putty command line screen. but I want to automate it.So whenever I will fire this script,it will do the following... (4 Replies)
Discussion started by: smartgupta
4 Replies
LEARN ABOUT DEBIAN
dpkg::source::package
Dpkg::Source::Package(3) libdpkg-perl Dpkg::Source::Package(3)NAME
Dpkg::Source::Package - manipulate Debian source packages
DESCRIPTION
This module provides an object that can manipulate Debian source packages. While it supports both the extraction and the creation of source
packages, the only API that is officially supported is the one that supports the extraction of the source package.
FUNCTIONS
$p = Dpkg::Source::Package->new(filename => $dscfile, options => {})
Creates a new object corresponding to the source package described by the file $dscfile.
The options hash supports the following options:
skip_debianization
If set to 1, do not apply Debian changes on the extracted source package.
skip_patches
If set to 1, do not apply Debian-specific patches. This options is specific for source packages using format "2.0" and "3.0
(quilt)".
require_valid_signature
If set to 1, the check_signature() method will be stricter and will error out if the signature can't be verified.
copy_orig_tarballs
If set to 1, the extraction will copy the upstream tarballs next the target directory. This is useful if you want to be able to
rebuild the source package after its extraction.
$p->get_filename()
Returns the filename of the DSC file.
$p->get_files()
Returns the list of files referenced by the source package. The filenames usually do not have any path information.
$p->check_checksums()
Verify the checksums embedded in the DSC file. It requires the presence of the other files constituting the source package. If any
inconsistency is discovered, it immediately errors out.
$bool = $p->is_signed()
Returns 1 if the DSC files contains an embedded OpenPGP signature. Otherwise returns 0.
$p->check_signature()
Implement the same OpenPGP signature check that dpkg-source does. In case of problems, it prints a warning or errors out.
If the object has been created with the "require_valid_signature" option, then any problem will result in a fatal error.
$p->extract($targetdir)
Extracts the source package in the target directory $targetdir. Beware that if $targetdir already exists, it will be erased.
AUTHOR
Raphael Hertzog, <hertzog@debian.org>
1.16.15 2014-06-05 Dpkg::Source::Package(3)