10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
Need a help to understand how one can automatically correct a file name using a shell script even if it is in a completely different format...
Ex : adv_OK_0215_mem_rules_firing.txt / advex_0215_OK_me_rule_fire.txt (or in any other format as above)
to :... (13 Replies)
Discussion started by: chatwithsaurav
13 Replies
2. Shell Programming and Scripting
Hi friends,
In my shell script, I want to open a file using vi editor. After opening the file in vi, I want to save and quit this file automatically.... all through shell script.
the code segment is:
------------------------------------------------------------
cd ~/netfpga/projects/scone/sw/... (2 Replies)
Discussion started by: sachinteotia
2 Replies
3. Shell Programming and Scripting
Hi, i want to create a table automatically based on another table (sms_key).
For example;
If user create a new row with sms_keyword field: IRC then a table created automatically (with some field on it, like: name, ph_number, messages).
select * from sms_key;
+-------------+
|... (1 Reply)
Discussion started by: jazzyzha
1 Replies
4. Shell Programming and Scripting
I need some help to write a ksh script.
My code so far (pretty bad, sorry):
#! /bin/ksh
echo "Calculate average"
UserDecision=y
while test $UserDecision = y
do
echo "Enter a number: "
read Number1
echo "Enter a number: "
read Number2
echo "Do you want to enter another number?... (2 Replies)
Discussion started by: johnagar
2 Replies
5. Shell Programming and Scripting
How tocreate a script file which will automatically create accounts from a csv file (2 Replies)
Discussion started by: donegal92
2 Replies
6. Solaris
I know we would not normally do this. However, I would like to have user's home directory created when they log in the first time.
I have searched the forums and have not found any help yet.
Scenario - environment uses NIS for auth and usually NFS mount HOME.
However, I have a pilot environment... (4 Replies)
Discussion started by: 22blaze
4 Replies
7. Shell Programming and Scripting
I´m a new system administrator. I have to create a script to put in crontab to change periodically root password and didtribute it to other servers. I searched the posted threads but I didn't find my answer. I would like to do this using ssh and trusted keys. Can anyone help me? Thanks. Aldina (0 Replies)
Discussion started by: Alrica
0 Replies
8. Shell Programming and Scripting
Hello,
Is there a script that i could write to automatically delete a file everytime that it is created (ex. i have an append file that is created everytime I run a program but I need it to get deleted automatically because everytime I run the program it add the original number of files... (3 Replies)
Discussion started by: TDS
3 Replies
9. Shell Programming and Scripting
Hi,
Is it possible to write and run a shell script for specific directory( Apache/htdocs) that changes root privilege read/write to chmod 755 when a program uploads a file (word,PPT,XSL,..) to that directory
Thanks,
Mk (3 Replies)
Discussion started by: mkohan
3 Replies
10. Shell Programming and Scripting
How do I write a perl script to get the cron jobs? I could do a
perl -e ' system "crontab -l > jobs.txt " ';
Is there a better way?
Then I can use perl to make changes to jobs.txt. How can I submit the changes.
I suppose I could use system "crontab jobs.txt", is there a better way?
... (0 Replies)
Discussion started by: siegfried
0 Replies