Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
40 views

Oneliner for multiline regex s/,\n]/]/g?

Can someone provide a simple one-liner to remove certain linebreaks ? In vim I do :%s/,\n]/]/g this should be possible with a very simple one-liner IMHO, but how?
0
votes
0answers
27 views

How can I improve or wrap my sed-script?

I instrumented a mvn build to emit profiling data, which I want to analyse later on. Therefore, I made the sed script below, to generate json-data from the profilers output. I call the script with ...
0
votes
2answers
53 views

Is it possible to add an exception with a “ls -l *”

Is it possible to do for exemple: ls -l * which print the content of all a directory. And add an exception, for exemple, test.cpp In order to print all files except the test.cpp.
1
vote
1answer
40 views

What software can I use to scrape (download) a MediaWiki wiki?

I want to scrape an entire wiki that uses MediaWiki software. The amount of pages are pretty small, but they have plenty of revisions, and I'd like to preferably scrape revisions as well. The wiki ...
0
votes
0answers
15 views

vim NERD Commenter plugin gives errors while executing script

I've installed the NERD Commenter on my vim 7.3 and when I try to use it's mappings, say, \cc (since I have \ as my leader key), it gives errors like these: Error detected while processing function ...
1
vote
2answers
46 views

How can I automatically run a script from my CD when the OS is up?

I want to write a script that will be run from my CD any time the OS finishes to go up. My questions: What type of script to write? What should I write to cause the script to run automatically when ...
0
votes
1answer
24 views

Script to run before Windows backup

I need to write a script to check the size of the disk that our backups store to on client machines and decide if it needs to delete the oldest backup set so the current days backup can run. Is there ...
0
votes
1answer
43 views

Execute command/script after file transfer

I've configured a server (Ubuntu) with OpenSSH for file transfer via sFTP. The requirement is that after a file transfer, a mail is sent confirming the file was received by the system. How would I do ...
-3
votes
0answers
26 views

Interpolating Integers [closed]

Every article I've read about interpolation does it with decimals. I want to do it with integers not decimals. It also needs to be cosine not linear. So would someone be so kind as to give me a cosine ...
2
votes
5answers
159 views

Best practices to alias the rm command and make it safer

Some time ago I erroneously deleted my home folder because I ran a rm -rf * on the wrong terminal, whose working directory was the home folder! I wish I had an alias for the rm command, but it was ...
2
votes
0answers
41 views

robo ftp - How to reference uploaded file in Upload Complete event script

I have tried using %lastfile but it seems to be empty and refers to some batch command initiated by Robo FTP instead of after a [passive] receive. Apart from the official web site, is there any other ...
3
votes
2answers
40 views

Batch processing two sets of files

Assume that I have two sets of files foo_A_uid.bar and foo_B_uid.bar. Each set contains (a known) number of files. Now, I want to process corresponding pairs using some tool (ImageMagick in my case), ...
2
votes
2answers
63 views

Delete registry key or value via CMD script?

I'm want to edit an already production .cmd script file, to have the script delete a certain registry key in the Windows registry. Firstly, is this even possible, and secondly (if that's not ...
1
vote
1answer
49 views

shell scripting: iterating through directories and moving/renaming files

(FYI, I have very little shell scripting knowledge) I have a ton of files and directories that look something like -root -dir1/a.txt -dir2/a.txt -dir3/b.txt -dir4/b.txt -dir5/c.txt I would ...
3
votes
4answers
80 views

How to append a string to a file name in Bash Shell?

So I am supposed to find all the files in the given directory with surffix of .C or cc, and change their name to .C.blah or .cc.blah Is there a command to do that? Or should I implement this with ...
0
votes
1answer
80 views

bash script to delete old files older than x days doesn't delete .zip files

This code does the trick on deleting files older than 10days But it doesn't delete the .zip files, any suggestions? find /testftp/* -type f -mtime +1 -exec rm {} \;
-2
votes
2answers
91 views

Shell script error using command find

My script is supposed to: recursively look for files and directories whose names contain given strings, using find, starting in the current directory. If no arguments are given the message Missing ...
3
votes
2answers
75 views

How do I configure Firefox through a script?

I'm looking to configure the following Firefox settings through a script (VBS or batch) default home page default search engine disable auto update Is this possible?
0
votes
1answer
85 views

How to write a script that does what less does?

Question: Create a script such that it is a command that has the same effect as the "less" command (implement the script by calling "less"). What I wrote: #! /bin/bash for index in "$@" do less ...
0
votes
0answers
52 views

Various binaries across my system are corrupt. How can I detect which ones are?

As a follow up to /sbin/init corrupting, I fixed /sbin/init and my system booted up fine. It's stable, but various binaries were also corrupt. Given that I can fix an individual break just by ...
3
votes
1answer
47 views

Can I automatically reboot if disconnected from the internet?

I have an old desktop that I'm running as a web server from my home while I'm at college. The internet at home is crappy and a lot of times when it goes down, the desktop can't reconnect without a ...
2
votes
1answer
36 views

Delete old files x days and send email if its done

I have a script that works removing files x days and keep the folders. I'm trying to send an email once its done with the deletion. Any advice? Current script is below: #!/bin/bash find /testftp/* ...
0
votes
0answers
42 views

Scripted Access (powershell) to Google Apps Data, other scripts OK, but must run on Win7 without installing anything “extra”

Is there a way to get powershell scripting access to the data stored in a Google Apps account? I've been poking through their API documentation and it looks like way over-kill for my needs. What I'd ...
1
vote
1answer
20 views

Identifying a file with “file” in a shell script?

I'm currently writing a shell script that needs to be able to identify the actual type of files (not their extensions) with the unix "file" utility. However, that tool outputs human readable text ...
1
vote
1answer
33 views

Keep screen from going to stand-by during working hours in ubuntu?

Normally in Ubuntu (11.10) you either configure the screen to go to stand-by after some amount of minutes has elapsed with no user activity. Or you can configure the screen to keep turned on always. ...
0
votes
1answer
113 views

Ubuntu shortcut shell script launcher for multiple items

Ok every day I go through the same routine, and its tediously annoying. So I came up with a thought and wondered if its remotely possible. What I want to do is open maybe 3-5 terminal windows, and in ...
1
vote
3answers
105 views

shortcut for opening cmd.exe at a certain location

How can I create an icon\shortcut to a script that opens cmd.exe command prompt at a certain location on a certain drive under Win7?
0
votes
1answer
81 views

How to prevent scripts from changing the terminal's window title?

I'm using GNOME Terminal and zsh on Ubuntu with Awesome WM. I need to launch a terminal window with a certain title set like "s1" and no script inside that terminal should change the title of the tab ...
0
votes
0answers
67 views

How to automatically save virtualbox vm state before logout?

I'm using oneiric with unity. I want to find a solution to automatically save the state of my virtualbox virtual machine before I logout or shutdown because I always forget to do it manually. I know I ...
1
vote
1answer
41 views

Automating music transcode

I want to be able to transcode my music library (lots of nested folders, no space) to a different bitrate. I've been doing this manually with Media Coder, but I've noticed that not every file ends up ...
0
votes
0answers
30 views

How can I set Outlook to convert all TIFFs received to PDF?

Is there a way to get Outlook 2007 to automatically convert or print to PDF any TIFF files received by email from a specific sender? The FaxPress service we are using has TIFF set as the by-design ...
0
votes
2answers
77 views

Folders named as the current month by command line

I have this code : xcopy "C:\30*.zip" "C:\Folder\" what i want is to copy the zip files to a new folder, this folder named as the current month ex : March , April
0
votes
1answer
125 views

Running Oracle script from Notepad++

Can we configure Notepad++ to run an Oracle script? I mean, once we wrote some script (assume a PL/SQL script containing a procedure), can it be compiled from Notepad++ editor itself? If it is ...
2
votes
2answers
36 views

What's the best command to use to change a timestamp to readable date when 'tail -f'-ing a log file?

I have a program which logs like this: 1324218770.7644 INFO etc What's the best Linux shell program to pipe that through to change the timestamps to a human readable format like Sun 18 Dec 2011 ...
-1
votes
2answers
145 views

How do I create a wake up script using PowerShell? [closed]

Possible Duplicate: Alarm clock software that can turn the computer on? I need something that can wake someone up in the morning - basically like a cron event in Linux. I think this needs ...
2
votes
1answer
30 views

Outlook 2007 Calendar - want to automate moving calendar a day ahead

I have a display board outside of a conference room that continuously shows an Outlook calendar for the conference room bookings. Right now it requires that someone log onto the host pc and manually ...
1
vote
0answers
31 views

How do I write find/write the script to restore a guest user in Lion (Mac OS X)?

In Mac OS X 10.7, you cannot have a guest user if you encrypt the entire drive. An alternative is to create a psuedo-guest user. One of the downsides is that the feature where the guest user is ...
0
votes
1answer
43 views

Windows batch script for tshark

I am trying to make a Windows batch script for tshark. here is the tshark command I use tshark -V -r file.pcap -T fields -E header=y -E separator=% -e wlan.sa -e ip.src -e wlan.da -e ip.dst > ...
2
votes
2answers
51 views

Is there a way to add a dynamic signature to an email?

I'm trying to create an email signature that will display differently on a recipient's computer based on what state their IP address is in. I was wondering if there are any known ways of accomplishing ...
1
vote
0answers
133 views

Macintosh OS X Logout Script

I am working on a project where I need to implement a logout script on some Macintosh computers. I have read the following Create a logoff script/task for Mac OS X article and found that while it is ...
0
votes
3answers
135 views

Error running JavaScript window.open command from a batch file

I am trying to run a JavaScript command from the command line, in Windows 7, using a batch file. The batch file is run as an administrator. I am trying to open an Internet Explorer 8 window, as part ...
0
votes
0answers
38 views

Which managed services OSS provides the most viable remote script execution?

I've came across four open source managed IT services software that allow for remote script execution. However, I am unable to find the amount of detail or power of these remote script execution ...
0
votes
1answer
35 views

What does the & mean when used in the end of a bash script?

I use a bash script for launching and add a & to the end, like this: ./bin/Startup.sh par1 & What does the & symbol in the end mean? Thanks.
0
votes
0answers
33 views

Startup script for two screens and one computer

I have a situation where I have two screens attached to one windows computer and I have to trigger 2 different applications on 2 different screens on start-up. What I think that I will need some kind ...
0
votes
0answers
99 views

How to make a Shell Script create a copy and terminate itself?

So far I used trap " call function" 2 fucntion { ./test.sh exit } but it never reaches the exit line and a whole bunch of process piles up any one got any idea? I tried & (bg) but i need to ...
1
vote
1answer
79 views

Mac OS: Automator-script for saving mails to auto-generated folders

I am looking into automator and need it to help me out with the following simple task: I need to have the attachments of a number of messages, which are sorted in a folder in Mail, downloaded and ...
1
vote
1answer
65 views

Run a login script without startup folder

So I have to run a login script when User X logs on. I put that script (.bat) in the startup folder and it works fine. However, I also have to disable the explorer shell and once I do that the startup ...
0
votes
1answer
15 views

How can I open a specific URL every 9 hours in Windows?

I need my computer to open a specificĀ URL every 9 hours, even when the computer is locked (Win-key + L). How can I achieve that? I must add that I have zero knowledge about scripting for Windows.
0
votes
0answers
40 views

Unix pkill error; does wily obstruct me killing the process?

I have two scripts on Unix; one that starts some processes and the other one for killing a process. At first, I ran the .sh without WILY in it and it worked perfectly; in this way, I could also ran my ...
0
votes
1answer
133 views

Running msiexec with PowerShell

I'm try to run msiexec in PowerShell but I keep getting an error message. If I run it from cmd then it's all fine. Can someone please let me know how I can run this command in PowerShell? This is ...

1 2 3 4 5 10