Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How do you use UNIX commands in the Windows Command Line? Post 302427024 by Scott on Thursday 3rd of June 2010 01:51:12 PM
Old 06-03-2010
Quote:
Originally Posted by vlay2
Honestly, I'm still pretty lost about everything. I installed Cygwin, and I opened it up and I try and type Unix commands like '% ls' and it keeps saying "bash: fg: %: no such job"

I'm thinking there's an easy fix to this, but I am really new to UNIX commands and writing on the command line in general. I just started learning yesterday so please bear with me.

You weren't being "stupid". Anything is easy if you know the answer (my main reasons for disliking Perl, Java and the sort command Smilie).

I would suggest you ask that question in the thead you started in the Homework forum, under that context.

Last edited by Scott; 06-03-2010 at 02:59 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

executing applications/commands on a unix server from a windows PC

i have a network drive (samba) mounted on to my PC and also i have SSH client on my machine. however i need to run applications/commands on a unix server from the middle of a different executable(windows compatable one). so i need to connect to the unix server from SSH through the... (1 Reply)
Discussion started by: megastar
1 Replies

2. UNIX for Dummies Questions & Answers

?Using Unix commands in Microsoft (Windows') DOS Prompt?

I ran a search for "Unix Dos" in the search field box and checked a few pages' results but did not find what I was looking for. I am trying to find out if there are choices of applications that would enable using Unix commands inside a Windows environment, particularly the DOS Prompt. The only... (2 Replies)
Discussion started by: HLee1981
2 Replies

3. UNIX for Dummies Questions & Answers

Running UNIX commands remotely in Windows box from Unix box – avoid entering password

I am able to run the UNIX commands in a Windows box from a UNIX box through "SSH" functionality. But whenever the SSH connection is established between UNIX and Windows, password for windows box is being asked. Is there a way to avoid asking password whenever the SSH connection is made? Can I... (1 Reply)
Discussion started by: D.kalpana
1 Replies

4. Shell Programming and Scripting

Unix commands in one line

Hi I want to write the following code in 1 line: a=1 if then echo ok else echo not ok fi The following does not work: a=1 ; if \r then \r echo ok \r else \r echo not ok \r fi or Even if I replace \r by \n it does not work. Please suggest. (11 Replies)
Discussion started by: miltonkeynesguy
11 Replies

5. UNIX for Dummies Questions & Answers

How to run UNIX commands for practice in Windows 2000 OS?

How to run UNIX commands for practice in Windows 2000 OS? If you suggest to install Cygwin, please let me know the procedure to install, or else I feel happy if you suggest any stand alone app for running UNIX commands..:) (2 Replies)
Discussion started by: Srikanthk
2 Replies

6. Shell Programming and Scripting

Replace unix 'new line' with windows 'new line'

I'm trying to write a script to convert a unix text file to windows/dos format. Essentially all I want to do is replace the Unix return with a windows one. on the command line I can do this successfully by: sed s/$/^M/ ~/unix.txt ~/dos.txt when I put this line in my shell script it... (5 Replies)
Discussion started by: wha72
5 Replies

7. UNIX Desktop Questions & Answers

How to practice unix commands on windows 7 machine

Hello, I am pretty new to UNIX and would like to know how i can run unix commands on a windows 7 machine. Basically, I want to practice running commands, created bash/awk/etc. scripts. I've read some things about cygwin, but it doesn't sound like it's exactly what I'm looking for. Any... (4 Replies)
Discussion started by: tester213
4 Replies

8. 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

9. IP Networking

How to transfer files from UNIX server to windows machine or vice versa using ftp or sftp commands?

hi, i want to write a shell script code which transfers files from a directory in unix server to a directory in a windows machine.. can any1 give me a sample code which uses ftp or sftp command.. thanks very much, (3 Replies)
Discussion started by: Little
3 Replies

10. UNIX for Dummies Questions & Answers

How to run UNIX commands on remote machine from windows?

Hi All, I am working in support and we are planning to automate a system to reduce the direct manual intervention to core system. Please find the below details. 1. we have a web application that runs on Windows Platform. 2. From web application, we need to connect to remote Unix machine.... (6 Replies)
Discussion started by: Balaji K
6 Replies
DOVEADM-BATCH(1)						      Dovecot							  DOVEADM-BATCH(1)

NAME
doveadm-batch - Execute multiple commands for multiple users SYNOPSIS
doveadm [-Dv] batch [-S socket_path] -A sep command sep command [...] doveadm [-Dv] batch [-S socket_path] -u usermask sep command sep command [...] DESCRIPTION
The command doveadm batch is used to execute multiple doveadm(1) commands sequentially for multiple users. This is primarily an optimiza- tion where Dovecot can do all the mailbox operations for the same user at once, instead of having to go through the users multiple times. In the first form doveadm(1) will loop over all users, defined in the configured user_db(s), and execute the sequence of commands for each of them. In the second form the commands will be executed for each user matching the given usermask. OPTIONS
Global doveadm(1) options: -D Enables verbosity and debug messages. -v Enables verbosity, including progress counter. Command specific options: -A If the -A option is present, the command will be performed for all users. Using this option in combination with system users from userdb { driver = passwd } is not recommended, because it contains also users with a lower UID than the one configured with the first_valid_uid setting. When the SQL userdb module is used make sure that the iterate_query setting in /etc/dovecot/dovecot-sql.conf.ext matches your data- base layout. When using the LDAP userdb module, make sure that the iterate_attrs and iterate_filter settings in /etc/dovecot/dove- cot-ldap.conf.ext match your LDAP schema. Otherwise doveadm(1) will be unable to iterate over all users. -S socket_path The option's argument is either an absolute path to a local UNIX domain socket, or a hostname and port (hostname:port), in order to connect a remote host via a TCP socket. This allows an administrator to execute doveadm(1) mail commands through the given socket. -u user/mask Run the command only for the given user. It's also possible to use '*' and '?' wildcards (e.g. -u *@example.org). When neither the -A option nor -u user was specified, the command will be executed with the environment of the currently logged in user. ARGUMENTS
command Any doveadm(1) command, with arguments and options -- except for the -A, -S and -u options. sep A single character used as command separator, e.g. ':'. Be careful, unquoted characters, like ; or &, may be interpreted by your shell and doveadm(1) will never see them. EXAMPLE
In this example we move seen mails, older than one month, for all example.net users to the alternative storage under /nfsmount: mail_location = mdbox:~/mdbox:ALT=/nfsmount/%h/mdbox The second command will remove messages with refcount=0 from the primary storage. doveadm batch -u *@example.net : altmove seen savedbefore 30d : purge REPORTING BUGS
Report bugs, including doveconf -n output, to the Dovecot Mailing List <dovecot@dovecot.org>. Information about reporting bugs is avail- able at: http://dovecot.org/bugreport.html SEE ALSO
doveadm(1) Dovecot v2.2 2013-11-17 DOVEADM-BATCH(1)
All times are GMT -4. The time now is 02:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy