09-24-2007
Possibilities:
Hey, I'm doing similarly heavy neccessary I/O operations
the thing with putting it into a variable, is you lose the carriage returns. Thats the only problem I can see, it's a bit messy too. You could substitute carriage returns with an unused character such as (¬) and translate them later,.
i.e filevarsub=$(echo $somefiledata | tr -t "\n" "¬")
then bring it back to write to the final file output
echo $filevarsub | tr -t "¬" "\n"
simple, but inelegant.
secondly, you could mount a ramdisk,
mkdir ram # in your main scripts directory
sudo mount -t ramfs /dev/ram ram #there are no options for ram, so umask etc doesnt work
sudo chown $USER ram #i$USER is who you're logged in as
you could stick it /etc/fstab to automount on boot just for your scripts,
or you could fix it so that mounting doesn't require root permissions (be careful with that one), so you can mount from within the scripts
I'd love for there to be a better way, if anyone knows please do tell
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm getting the following errors when I try to write a script to unzip some zip files. When I use the free trial copy of the commerical winzip program, however, they work fine. When I use -l or -t on unzip it indicates no errors. When I use the -o switch interactively from the bash command line it... (1 Reply)
Discussion started by: siegfried
1 Replies
2. Shell Programming and Scripting
Could anyone help me to Write a script in BASH Shell to determine the percentage of system disk space you are using. (1 Reply)
Discussion started by: boris
1 Replies
3. Red Hat
Hi,
On server 64bit Hw Arch , Linux 5.0(32bit) is installed it is showing only 3gb of ram though physical is 16gb
can u give me idea why? (4 Replies)
Discussion started by: manoj.solaris
4 Replies
4. Shell Programming and Scripting
I want to write a bash script to:
1. Send an email from localhost to an external gmail account. (gmail then automatically forwards the message back to a pop account on the same server.
2. Script waits 3 minutes then checks to see if the email arrived, and if not, it sends an email to... (9 Replies)
Discussion started by: sallyanne
9 Replies
5. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have just gotten into writing bash scripts for a class, part of the assignment is to read and be able to tell... (4 Replies)
Discussion started by: Byrang
4 Replies
6. Shell Programming and Scripting
Im trying to write a script using the host command but its not working properly. I cant understand what Im doing wrong. When I use it at the command prompt, it works fine. But its being used actually in the script, it says its not found: 2 SERVFAIL. Can anyone help me? Here's what I have so far: no... (6 Replies)
Discussion started by: relsha
6 Replies
7. Shell Programming and Scripting
Hi,
I need to automate some repacking tasks of a boot image for Android
When in command line, I can use this command:
mkbootfs /path/to/root > /path/to/ramdisk-recovery.cpio;However, if I try to run the command from a shell script under Ubuntu, it fails and outputs to stdout instead of the... (27 Replies)
Discussion started by: Phil3759
27 Replies
8. Shell Programming and Scripting
Hello,
I want to write a bash script to delete the content after '#'. However, if '#' appears in a string with "", ignore this. For example,
input file:
test #delete
"test #not delete"
Output file:
test
"test #not delete"
Does anyone know how to write this script?
Thanks (1 Reply)
Discussion started by: jeffwang66
1 Replies
9. Shell Programming and Scripting
Hi,
I wanted to load data from HDFS to HIVE by writing bash script.
Description:
I have written a bash script to validate the data and loaded validated data from local file system to HDFS. Now in the same bash script i wanted to load the data from HDFS to HIVE. How can i do it ? Also how tyhe... (2 Replies)
Discussion started by: shree11
2 Replies
10. Shell Programming and Scripting
Hi,
I have a script file where i'm validatig the input file and storing the validated records on HDFS.
I wanted to load data from HDFS to HBASE using pig script. So for that i have created a HBASE table and written pig script to load data from HDFS to HBASE which is working fine. Now i wanted... (0 Replies)
Discussion started by: shree11
0 Replies
LEARN ABOUT DEBIAN
nautilus-scripts-manager
NAUTILUS-SCRIPTS-MANAGER(1) General Commands Manual NAUTILUS-SCRIPTS-MANAGER(1)
NAME
nautilus-scripts-manager - easy tool for nautilus scripts management
SYNOPSIS
nautilus-scripts-manager [options]
DESCRIPTION
This manual page documents briefly the nautilus-scripts-manager command.
nautilus-scripts-manager is a program that allows any user to easily manage installed Nautilus scripts.
GENERAL OPTIONS
-h, --help
Show summary of options.
-v, --version
Show version of program.
COMMANDS
One (and only one) of the following commands can be passed:
-e, --enable=ENABLE
Enable script ENABLE.
-d, --disable=DISABLE
Disable script DISABLE.
-l, --list-enabled
List enabled scripts.
-a, --list-available
List available scripts.
If no command is provided, the graphical interface is started.
OPTIONS
-e, --position=POSITION
In conjunction with -e or -d: establish the position of the script (can be just a name, or a path with slashes - quote it if it con-
tains spaces).
SEE ALSO
nautilus(1),
AUTHOR
nautilus-scripts-manager and this manual page were written by Pietro Battiston <me@pietrobattiston.it>.
This manual page was written for the Debian project (but may be used by others).
July 14, 2009 NAUTILUS-SCRIPTS-MANAGER(1)