DO NOT USE - This tag is being removed as part of our clean up process - See link in Tag Wiki for more information.

learn more… | top users | synonyms (1)

0
votes
1answer
18 views

Why the command substitution in the crontab job doesn't work?

crontab -l: * * * * * /Users/michel/Desktop/myScript.sh myScript.sh: #!/bin/bash /usr/local/bin/growlnotify -t 'Fact' -m "$(/Users/michel/Desktop/anotherScript.sh data.txt)" -n 'myApp' it ...
1
vote
1answer
18 views

Windows command to copy file forcefully when that file is used by another process

I am copy a file using copy command. But its throwing some error. copy /y ..\BuildLog.htm . Error is : The process cannot access the file because its used by another process XCOPY /Y is also ...
-4
votes
0answers
23 views

Terminal cuts off command output from last? [closed]

I am working on bash script and when my script reach and execute command. I am expecting longer output in terminal but it just shows 20 to 25 lines as output and rest of lines disappears. Please help
6
votes
2answers
225 views

Bash Run command for certain time?

I am making bash script for my use. How can i run a command for certain time, like 20 second and terminate command? I tried a lot of solutions but nothing works, I also tried timeout command with no ...
0
votes
0answers
28 views

Files copied using xcopy command are hidden in destination

I copied almost 100GB of files from my laptop to my external drive using the following xcopy command. X:\windows\system32>XCOPY E:\ "L:\BackupFolder\" /S /E All the files in E: is copied to ...
1
vote
2answers
59 views

What are the slashes with letters (/b, /m, /e, /p, …) used for?

What are the slashes with letters for – as seen in set /p or for /f etc?
0
votes
2answers
31 views

Custom command with option

I'm using "ls -l" a lot is there a way say define a shortcut for that so i could call it "ll"? This way I can go and use short instead? Any pointers appreciated. Thanks. Michael
0
votes
0answers
17 views

Script to make and replace files [duplicate]

How can I make a shell script that creates a directory and a file everytime it is run and then replace the previous files? I am reposting this because the original post got closed because of the ...
1
vote
0answers
39 views

How to append 2 video files

Is there any way to append one video file to another ? I've got a very large file (2GB) to which I'm trying to append some tiny files (~4MB). They all are in the same format. It's easy to concat ...
0
votes
1answer
35 views

How do I use cat to encrypt stdin on the fly with openssl?

The following command works for encrypting stdin using echo: echo "abc" | openssl enc -base64 This command also works for substituting characters in stdin using cat: cat | sed 's/a/b/g' However, ...
2
votes
3answers
64 views

Using sed to change output format

How can I use sed to change the output format of a text file? My text file contains and diplays this when I call cat: 9/27/2002 9/28/2002 10/1/2002 10/2/2002 10/10/2002 10/11/2002 12/29/2002 ...
0
votes
1answer
31 views

How to make an alias and work in sh for all users (not in bash)?

My question maybe is silly, but how can I make an alias so as to work in sh for all users? I know that I can put an alias, let say this one: alias ls='ls -l' in /etc/bash.bashrc so as to work in ...
1
vote
1answer
58 views

OSX Server 10.8.2 - Change domain password (command line)

How do i go about changing the domain password for a user? Assuming i'm running a admin account, is there a command or method to change a users password without a GUI? Also, previous password is ...
-1
votes
0answers
35 views

Command for close firefox browser tab or firefox browser from ubuntu terminal [duplicate]

Can I close firefox browser tab or firefox browser from ubuntu terminal command?
1
vote
2answers
77 views

Windows commands not working

I have tried to run several different windows commands and most of them return an error message. i first ran taskkill, then tasklist, and then systeminfo and none seemed to work. C:\>tasklist ...
0
votes
3answers
51 views

I want to permanently change the background color to white and the text color to black in Command Prompt

I can change it for one session, but it always reverts back to black. how can i change it permanently?
0
votes
5answers
100 views

Linux/Bash, how to schedule commands in a FIFO queue?

I want the ability to schedule commands to be run in a FIFO queue. I DON'T want them to be run at a specified time in the future as would be the case with the "at" command. I want them to start ...
1
vote
2answers
58 views

IF command query

I'm trying to calculate different percentages for the same cell. Let's say for arguments sake it's cell A1: If A1 < 50000 then multiply by 10% If A1 > 50000 then multiply by 12.5% If A1 ...
2
votes
2answers
57 views

Execute command after seconds (without sleep)

How can I run a command after X seconds without sleep. Or with sleep but without the shell just wait for the response of that command? I use this but it not work sleep 5 ; ls > a.txt I need to ...
0
votes
2answers
52 views

Is there any way to copy file which are modified at perticuler time in cmd?

I am using the below command to copy all modified file day wise D:\ws\xcopy *.* /s /D:04-02-2013 D:\new but now i want to copy files which are modified at particular time, any have any idea how to ...
0
votes
2answers
60 views

is it possible Pattern ping in windows?

is it possible pattern ping in windows , like we do in linux ping -p ff dest_ip ? Thanks,
0
votes
1answer
90 views

Batch script or set of commands to extract the fields of date

I am trying to create a batch file to backup my data at regular intervals in Windows using a batch script. I need date parameter and the fields from the displayed format (Month, day and year). ...
0
votes
4answers
112 views

How to know the process PID in linux machine

I am launching an installer from java to install a software on linux, I want to to know the "process id and image name" of it. In windows I able to get it by using tasklist command, but in linux I ...
3
votes
1answer
62 views

One line ls command

How can I use just one single ls command to display all symbolic links in my /dev directory? I know ls -l and that's about it.
1
vote
1answer
109 views

Bash script executes but 'until' command not found

I'm writing a bash script for a class that has a main menu with two submenus. I haven't finished my script yet, but I already have a problem I haven't been able to remedy: My script runs fine but ...
0
votes
1answer
67 views

How to tell if command prompt is working?

Another life ago I used to build PCs, but have been a Mac girl for so long now... this question is almost embarrassing but it's driving me nuts. I'm using command prompt findstr to search website ...
3
votes
1answer
58 views

Windows : How to detect if computer was shut down remotely?

A computer in domain is randomly shut down by someone (he was caught once)! He uses shutdown /s /f /t 0 /m \\computername in windows command line to accomplish this. After the incident some ...
1
vote
1answer
43 views

Why does this not work? echo 'abc' | strings

I found tcpdump -l -s0 -w - tcp dst port 80 | strings on this article. So I want to try to use strings command. But command like echo 'abc' | strings does not work. Why? Thanks in advance. I ...
0
votes
1answer
41 views

“start” and “The system cannot find the file”

I am trying to use the command start For example, I have the programs Firefox and HxD installed on my system C:\Users\Steven>forfiles -s -p "C:\Program Files (x86)" -m firefox.exe "firefox.exe" ...
13
votes
8answers
438 views

Killing all instance of a specific program from the command line [closed]

Is there any way of killing all instances of a specific program with a command-line command?
-1
votes
3answers
168 views

Where is the command line in Windows 8? [duplicate]

i'm having trouble trying to find the command line to type "dir" and then "bcc32 firsprog.c" so I can compile a program that I made called "firstprog.c" using BCC32 C compiler. I'm using Windows 8 and ...
1
vote
1answer
68 views

Mac: command line to convert pages document opened in Preview to PDF

Considering that there is no iWork installed and there is no "Preview.pdf" in the pages file package, how do I: convert the pages document to PDF from command line? I can open the pages document ...
3
votes
2answers
170 views

Why does Robocopy ignore the /copy flags?

Robocopy Copy Flags? I just recently made an answer here http://stackoverflow.com/a/15211788/891976 where I suggested using robocopy and its /copy flags, but for some as of yet unknown reason, the ...
1
vote
1answer
43 views

sudo chmod is invalid when using mounted-partition(windows)?

# /etc/fstab UUID=D254B*****B5B*** /home/username/c ntfs defaults,fmask=113,dmask=002, uid=username,gid=username 0 2 # uname -a Linux 00544 3.2.0-37-generic-pae #58-Ubuntu SMP Thu Jan 24 15:51:02 ...
0
votes
0answers
12 views

What is the windows batch command to bring the print dialog box to print a file, same as when we press control P, a printer dialog box comes [duplicate]

What is the windows batch command to bring the print dialog box to print a file, same as when we press control + P, a printer dialog box comes so we select no of page and other options, similary using ...
2
votes
2answers
83 views

How to find the process which consumes most of the CPU in Linux

On my linux machine there was a script which was accessing mysql withing a while(true) loop. It has caused my cpu usage to 99%-100%. But I couldn't find exactly what script was doing this. Following ...
0
votes
1answer
36 views

How do I find out if my Windows machine is running 32 or 64 bit OS? [duplicate]

What command should I run to identify if I am running a 32 or a 64 bit Windows OS?
0
votes
0answers
7 views

capturing the commands of frontend application access

I'd like to automate the applications that I am currently using. I am using windows and using most of the GUI of the applications. I would like to capture the command line (commands) of the windwos ...
0
votes
2answers
46 views

In Vim what command will put the cursor at the last character in a file, not the last line?

I realize that G will move the cursor to the last line in file, but is there a command that will move to the last character? I know I can type G$ to do this, but I thought there might be a single ...
1
vote
1answer
152 views

Automating Unix Command Line Application that Asks for Input

I'm trying to automate a Unix command script and pipe the output to mailx so I can know if I need to manually edit files before FTPing them. A lot of this is automated, but due to a bug I need to ...
4
votes
1answer
89 views

I am trying to organize my ebooks

I have collected a vast array of ebooks which I would like to sort according to authors. However some authors are {last name} {first name} And the same author may have books where they are listed ...
2
votes
2answers
89 views

SSH remote command execution in script

In my script I do something like this: command="some/path/script.sh arg1 arg2; some/path/script2.sh arg1 arg2;" ssh_command="ssh root@$ip '$command'" echo $ssh_command exec $ssh_command The echo ...
0
votes
1answer
61 views

How to restore Video File from Recycle Bin when i cannot open Windows 7? [closed]

I have two windows on my PC Windows XP and Windows 7. I have deleted a file installed on windows 7 in drive C after running an un-installer, and asked me to confirm I wanted to delete the file - ...
1
vote
1answer
147 views

how to connect to secured wireless network connection in cmd in windows?

I program on C#, I don't want to use P/invoke, so I will use shell, so I need to connect to a secured wireless network connection on the CMD in windows, I know how to connect to a wireless network but ...
0
votes
2answers
544 views

A MS-DOS command to delete all files and directories

I have the following situation. I got a Temp folder which gets filled with all kinds of files and directories. I want/need to clean it regularly, but I can't figure out a command or set of MS-DOS ...
3
votes
2answers
68 views

Accidentally blocked myself out of my private UNIX directory

I used the following command to see who had permission to my directory. fs la I then wanted to block someone out, so I used the command (and accidentally used my username instead of the person I ...
2
votes
1answer
163 views

What are commands to find shell keywords, built in functions and user defined functions?

I was discussing with my friend on how the commands are parsed in the shell, and he told me that bash searches the command in following order List of aliases List of shell keywords List of user ...
1
vote
2answers
413 views

Renaming computers via command prompt

I am the system admin for a small business (120 employees) and I am looking at an easy way to rename all of the computers in the office to a more uniform naming convention. I have tried playing with ...
0
votes
2answers
293 views

Using Commands in a Shortcut Target

Is it possible to put commands into a shortcut target? I recently swapped hard drives and now I've got a bunch of shortcuts going to the wrong drive letter. I really want to get "cd.." working - is ...
1
vote
2answers
110 views

Using paste command to join with multiple character delimiter

I have a file which gets generated based on the arguments and it has the following contents. 2012-12-31 2012-12-30 2012-12-29 Now, these are actually date partitions for hive query. So, I want to ...

1 2 3 4 5 7