Sponsored Content
Special Forums Windows & DOS: Issues & Discussions Archive Unix script to Batch script Post 302664669 by jgt on Saturday 30th of June 2012 07:00:42 AM
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to write a Script to run series of batch jobs on unix platform

Im new to unix shell scripting, I have to run batch jobs on unix. for example i have 5 jobs. first 2 can kickoff parallely. after completely finishing the 2 previous jobs the 3 job should kick off..once 3rd is over 4 th and 5th can kick off parallely. Each jobs run for 1 or 2 hours each. How to... (2 Replies)
Discussion started by: venki311
2 Replies

2. Shell Programming and Scripting

how to convert unix .ksh script to windows .batch script

I am using awk in my .ksh script but when I am trying to run in windows its not recognising awk part of the ksh script , even when I changed it to gawk it does not work, this is how my .ksh and .bat files look like. thanx. #!/bin/ksh egrep -v "Rpt 038|PM$|Parameters:|Begin |Date: |End... (1 Reply)
Discussion started by: 2.5lt V8
1 Replies

3. UNIX for Dummies Questions & Answers

UNIX logon script/batch

Hi everyone, I am a newbies to Unix and hope someone can help me on: 1. Do anyone has batch file example that can be logon to a unix sever through telnet and exec a nohup command without typing in username and passward everytime ? 2. A java script exmaple for doing the same logon so it... (1 Reply)
Discussion started by: oht
1 Replies

4. Shell Programming and Scripting

How to execute multiple(batch) oracle script in unix mechine

Hi All, How to run multiple oracle script in unix at-a-time.I appriciate if any send the script for me. Regards, Ravi kumar.Gongati (2 Replies)
Discussion started by: ravi gongati
2 Replies

5. Shell Programming and Scripting

Change the Windows Batch script to UNIX shell script.

Hi, When I run the below script in UNIX it's throwing syntax errors. Actually it's a windows batch script. Could anyone change the below Windows Batch script to UNIX shell script... Script: REM :: File Name : Refresh_OTL.bat REM :: Parameters : %1 - Region REM :: : %2 - Cube Type REM ::... (5 Replies)
Discussion started by: tomailraj
5 Replies

6. Shell Programming and Scripting

Dos batch script to execute unix shell script

Can anyone help me with a dos batch script to execute a shell script residing in an unix server. I am not able to use ssh. Thanks in advance (2 Replies)
Discussion started by: Shri123
2 Replies

7. Shell Programming and Scripting

Windows Batch script for Unix commands

I wish to create a folder on a unix server B from my windows box using windows batch script. Below is my windows batch script. @ ECHO OFF ::Enter your Directory name: echo Enter your Directory name: set /p mydir= plink user1@ServerA mkdir %mydir% At plink command i get logged... (7 Replies)
Discussion started by: mohtashims
7 Replies

8. Shell Programming and Scripting

Batch script to execute shell script in UNIX server

Hi team, My requirement is to transfer pdf files from windows machine to unix server and then from that unix server we should sftp to another server. I have completed the first part i.e From windows to using to unix server with the help of psftp.exe code: psftp user@host -pw password <... (1 Reply)
Discussion started by: bhupeshchavan
1 Replies

9. Shell Programming and Scripting

SFTP or scp with password in a batch script without using SSH keys and expect script

Dear All, I have a requirement where I have to SFTP or SCP a file in a batch script. Unfortunately, the destination server setup is such that it doesn't allow for shell command line login. So, I am not able to set up SSH keys. My source server is having issues with Expect. So, unable to use... (5 Replies)
Discussion started by: ss112233
5 Replies

10. Shell Programming and Scripting

Script to archive logs and sftp to another archive server

Requirement: Under fuse application we have placeholders called containers; Every container has their logs under: <container1>/data/log/fuse.log <container1>/data/log/fuse.log.1 <container1>/data/log/fuse.log.XX <container2>/data/log/fuse.log... (6 Replies)
Discussion started by: Arjun Goswami
6 Replies
DEBSNAP(1)							DebSnap User Manual							DEBSNAP(1)

NAME
debsnap - retrieve old snapshots of Debian packages SYNOPSIS
debsnap [options] package [version] debsnap [-h | --help] [--version] DESCRIPTION
debsnap is a tool to help with retrieving snapshots of old packages from a daily archive repository. The only publicly available snapshot archive is currently located at http://snapshot.debian.org By default, debsnap will download all the available versions for package that are found in the snapshot archive. If a version is speci- fied, only that particular version will be downloaded, if available. OPTIONS
The following options are available: -d destination, --destdir destination Directory to place retrieved packages. -f, --force Force writing into an existing destination. By default debsnap will insist the destination directory does not exist yet unless it is explicitly specified to be '.' (the current working directory). This is to avoid files being accidentally overwritten by what is fetched from the archive and to provide a guarantee for other scripts that only the files fetched will be present there upon comple- tion. -v, --verbose Report on the debsnap configuration being used and progress during the download operation. Please always use this option when reporting bugs. --binary Download binary packages instead of source packages. -a, --architecture Specify architecture of downloaded binary packages. Implies --binary. This can be given multiple times in order to download binary packages for multiple architectures. -h, --help Show a summary of these options. --version Show the version of debsnap. CONFIGURATION OPTIONS
debsnap may also be configured through the use of the following options in the devscripts configuration files: DEBSNAP_VERBOSE Same as the command line option --verbose. Set to yes to enable. DEBSNAP_DESTDIR Set a default path for the destination directory. If unset ./source-<package_name> will be used. The command line option --destdir will override this. DEBSNAP_BASE_URL The base url for the snapshots archive. If unset this defaults to http://snapshot.debian.org EXIT STATUS
debsnap will return an exit status of 0 if all operations succeeded, 1 if a fatal error occurred, and 2 if some packages failed to be down- loaded but operations otherwise succeeded as expected. In some cases packages may fail to be downloaded because they are no longer avail- able on the snapshot mirror, so any caller should expect this may occur in normal use. EXAMPLES
debsnap -a amd64 xterm 256-1 Download the binary package of specific a xterm version for amd64 architecture. debsnap -a armel xterm Download binary packages for all versions of xterm for armel architecture. debsnap --binary xterm 256-1 Download binary packages for a specific a xterm version but for all architectures. debsnap --binary xterm Download binary packages for all version of xterm version for all architectures. aptitude search '~i' -F '%p %V' | while read pkg ver; do debsnap -a $(dpkg-architecture -qDEB_HOST_ARCH) -a all $pkg $ver; done Download binary packages of all packages that are installed on the system. FILES
/etc/devscripts.conf Global devscripts configuration options. Will override hardcoded defaults. ~/.devscripts Per-user configuration options. Will override any global configuration. SEE ALSO
devscripts(1), devscripts.conf(5), git-debimport(1) AUTHORS
David Paleino <dapal@debian.org> COPYRIGHT
Copyright (C) 2010 David Paleino Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 or (at your option) any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. BUGS
Reporting bugs The program is part of the devscripts package. Please report bugs using `reportbug devscripts` Debian devscripts July 3, 2010 DEBSNAP(1)
All times are GMT -4. The time now is 03:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy