Solaris
   12 tags on

Solaris

  • All Sites

4 answers

Delete tag from xml using bash tools

Question I have an application that creates logs in the format 2014-09-01 12: 01: 01.899;some app logs 2014-09-01 12: 01: 02,045;some app ...

4 answers | 7 mins ago by kawu on Stack Overflow stackoverflow.com
2 answers

Would it be wrong to say that >template engines< descend from awk + troff?

I am trying to figure out how template engines evolved. But it is difficult to find information on the internet. Does somebody has the following knowledge about template engine history: What were …

13 answers

How to repeat last command in python interpreter shell?

How do I repeat the last command? The usual keys: Up, Ctrl+Up, Alt-p don't work. They produce nonsensical characters. (ve)[kakarukeys@localhost ve]$ python Python 2.6.6 (r266:84292, Nov 15 2010, ...

3 answers

bash find using variable

I have an issue I don't understand. It is simple and it should work, but it doesn't. =EDITED exactly what I can see from terminal= I have a list of filenames: [molni@archlinux picasa_album]$ cat LIST …

2 answers

Pass arguments to a command run by another user

I have a bash script that is supposed to take some arguments and then run in a different user: test.sh #!/bin/bash sudo su user2 <<'EOF' echo $1 EOF However it prints blank: $ ./test.sh …

1 answer

How to determine when a file was created

I have a .jar file that is compiled on a server and is later copied down to a local machine. Doing ls -lon the local machine just gives me the time it was copied down onto the local machine, which ...

1 answers | 38 mins ago by Chris on Stack Overflow stackoverflow.com
0 answers

How to login to the GUI from commandline

When I boot up, I sometimes go into tty, execute a few commands and then have to restart the GUI (gmd) with sudo service restart gdm I then go to the GUI (Alt+F7) and have to login. Occasionally, …

2 answers

tcsh script - Will not output simple ls -l command using cygwin

I want to check whether or not the files in a directory A match the files in directory B, and that these matched files are not modified/changed. I am very new to this new programming environment as I …

2 answers | 51 mins ago by shawn a on Stack Overflow stackoverflow.com
1 answer

Permission denied when running shell script from java program

I am trying to run my shell script using java program. I am getting following exception. java.io.IOException: Cannot run program "/home/builder/code/target/classes/idFetcher.sh": ...

1 answers | 1 hour ago by Ashish on Stack Overflow stackoverflow.com
3 answers

How can I make a special file that executes code when read from

Most files on a Linux system are normal files, i.e. they are saved on disk and reading from them just reads from a specified chunk of memory on the disk. How can I make something that behaves like a …

3 answers | 1 hour ago by cs. on Unix & Linux unix.stackexchange.com
1 answer

script not working when invoked via cron

I have created a script script.sh which contains ./ecc start pricingUpdater & >> /home/eceuser/Muthu/details/Latest.txt where ecc is another script. If I run the script manually by ...

3 answers

Bash script which replaces constants makes two files

I have a bash script which replaces a set of constants in the html, js and css files in a directory. It works fine but for some reason it creates an additional file with a suffix of "-e" on the file …

3 answers | 1 hour ago by Ger on Stack Overflow stackoverflow.com
5 answers

script to scan ip range and return results in a certain format

This script scans IP's and returns a status of Up or Down. How can I alter it so it doesn't scan everything twice? As it sits it scans everything and returns the "Up" addresses only and then scans all …

1 answer

Ruby : get output of external command even when there is no line break

I try to run an external command in Ruby, and parse its output . IO.popen(command, :err=>[:child, :out]) {|ls_io| ls_io.each do |line| print line end } This way of doing it works ...

3 answers

Expansion of variable inside single quotes in a command in bash shell script

I want to run a command from a bash shell script which has single quotes and some other commands inside the single quotes and a variable. e.g. repo forall -c '....$variable' In this format, $ is ...

3 answers | 1 hour ago by Rachit on Stack Overflow stackoverflow.com
0 answers

SIGCHLD handling and waiting for children in C Shell

I'm creating a UNIX Shell in C with fork(). I'm trying to handle children correctly. I've implemented the & functionality, so its possible to run processes in the background. I've implemented a …

2 answers

How to project any folder changes to a new folder and leave original untouched?

In my program I am calling methods that do lots of changes to a content of a folder, including: deleting files/folders, changing files/folders, adding files/folders, adding/deleting ...

7 answers

Java: Date from unix timestamp

I need to convert a unix timestamp to a date object. I tried this: java.util.Date time = new java.util.Date(timeStamp); Timestamp value is: 1280512800 The Date should be "2010/07/30 - 22:30:00" …

7 answers | 2 hours ago by 4r1y4n on Stack Overflow stackoverflow.com
2 answers

how to find the type of img file and mount it

I have to mount a .img file but I don't know what type of .img it is. How can I figure out what type of .img file it is? # mount -t auto -o ro,loop gmapsupp.img /mnt/iso/ mount: you must specify the …

19 answers

BASH: Convert absolute path into relative path given a current directory

absolute="/foo/bar" current="/foo/baz/foo" # magic relative="../../bar" Can you help me with magic? (Hopefully not too complicated code...)

1 answer

Use Higher Version of Unzip in Oracle EBS

-I encounter error during installing ORACLE EBS on LINUX 64 bit server. -Log shows that: RC-20200: Fatal: Could not find Unzip. At this time only Native UnZip 5.X is supported. Please make sure you …

1 answer

Awk to compute average ignoring outliers -for a segmented file

I have data file (data.txt) that look like this, 0.01667 20.53 0.01667 6.35 0.01667 6.94 0.01667 7.07 0.01667 8.06 0.01667 8.10 0.01667 8.25 0.01667 8.71 0.01667 9.31 0.02500 20.19 0.02500 6.35 ...

1 answers | 2 hours ago by malandisa on Stack Overflow stackoverflow.com
3 answers

Why, does it seem, that I need to use two double quotes to delimit file paths?

I'm writing a script in python that runs a program. Spaces in the path or arguments need to be quoted, but for some reason it won't seem to work unless I use double quoted strings e.g. ...

1 answer

Easily print out a spaces between larger data outputs in bash

I'm grepping through a very large web directory, and when I do multiple greps in a row, when scrolling up, it is difficult to tell when one result ends and an other one starts. I tried just clear, ...

1 answers | 2 hours ago by TheBat on Super User superuser.com
2 answers

sending a mail using informatica workflow

I have an informatica mapping-a simple one which has Sq->t(x)->tgt Here I am populating the target (which is a flat file) only if a certain condition is satisfied, which is included in the ...

2 answers | 2 hours ago by user3813547 on Stack Overflow stackoverflow.com
0 answers

Linux shell script to print a text file to specified printer

I am struggling with brainstorming and figuring out a basic shell script where when called with the name of a text file and printer as arguments, prints the text file two-pages-per-sheet-of-paper on …

1 answer

Script to reference another file first

Hi I have a script and in it I need to get the hostnames from IPs that the script generates. The script will generate those IPs into 1 neat file with only 1 column. It is literally just IP address (1 …

1 answers | 3 hours ago by unixpipe on Super User superuser.com
2 answers

rhc and mongo “command not found” in openShift cartridge

My Jee and mongo-application are up and running on openshift. Yet since today I cannot execute neither the mongo shell nor rhc commands when logged in via SSH. On both commands I just get bash: ...

2 answers | 3 hours ago by Locked on Stack Overflow stackoverflow.com
2 answers

Filesystem test suites

I wanted to ask about testing suites available for testing Linux file systems. I am looking for more of stress and load testing suites, which can stress the system, find corruptions by validating the …

1 answer

number of requests in apache access_log

I am trying to find the number of requests in the apache access_log. That is, some unix command that will return the number of requests. Thanks!

1 answers | 3 hours ago by Chris Bolton on Stack Overflow stackoverflow.com
15 30 50 per page
1 2 3