10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a script, which is checking if file exists and move it to another directory
if
then
mkdir -p ${LOCL_FILES_DIR}/cool_${Today}/monthly
mv report_manual_alloc_rpt_A_I_ASSIGNMENT.${Today}*.csv ${LOCL_FILES_DIR}/cool_${Today}/monthly
... (9 Replies)
Discussion started by: digioleg54
9 Replies
2. UNIX for Advanced & Expert Users
Hi,
I am having issues with the jar -tf command when I put in the shell script.
The command runs fine from the command line as shown below.
# jar -tf "./VirtualBox Dropped Files/2016-04-17T20:58:49.129139000Z/hive-exec-0.8.1.jar"
But when I put in a shell script(shown below) and the... (10 Replies)
Discussion started by: vinoo128
10 Replies
3. Shell Programming and Scripting
Hi,
Could you please assist how to move the gz files which are older than the 90 days from one folder to another folder ,before that it need to check the file system named "nfs" if size is less than 90 or not. If size is above 90 then it shouldn't perform file move and exit the script throwing... (4 Replies)
Discussion started by: venkat918
4 Replies
4. Shell Programming and Scripting
Requirement: I am writing a shell script which take some file from say Server1 and I have to execute some command on Server2 then I have to manipulate the data and based on that I have to produce report.
Problem:I can schedule the shell script on only one server (Server1 or Server2) So, In the... (3 Replies)
Discussion started by: raks2301
3 Replies
5. Shell Programming and Scripting
I need a script which should watch a directory for a file with specific directory.
If it finds a file in directory, it should search for few specific keyword in the file. if the keyword exists, it should trim string from specific column.
The file should be moved to another directory and the a... (8 Replies)
Discussion started by: akashdeepak
8 Replies
6. Shell Programming and Scripting
Linux version : Oracle Linux 6.4
Shell : Bash
The following script will be run as root. During the execution, it should switch to oracle user and execute few commands.
After googling and searching within unix.com , I came up with the following syntax
## Enclosing all commands in double... (7 Replies)
Discussion started by: John K
7 Replies
7. UNIX for Dummies Questions & Answers
Dear All,
I want to switch a user inside a shell script.My current user say x and user y to whom i want to switch both have login on the same server,the one on which i want to execute my script on.
"I want to do something like this
su - y
Password should be provided in the script itself.And... (6 Replies)
Discussion started by: navjotmannan
6 Replies
8. Shell Programming and Scripting
Hi,
I have a shell script in which I need to switch to another user and execute some commands and then come back to the original user.
To make it more clear -
I have to log in as user root then 'su' to jag - execute a script called backup.sh and then logout and come back to root again..
... (1 Reply)
Discussion started by: bjagadeesh
1 Replies
9. Shell Programming and Scripting
Using Solaris CDE environment and want to write a shell script (pref. Korn) which can:
Upon invokation opens a dtterm new window (no problems, here, i.e. on how to open one)
The new dtterm should be moved by the script to another workspace (consider no one changed the default Solaris naming... (3 Replies)
Discussion started by: baivab
3 Replies
10. UNIX for Dummies Questions & Answers
Whenever I relaunch my terminal application on Mac OS 10.4.6, the shell changes to something different. E.g. I used to work in "sh" and then relaunch, I am suddenly in "bash" mode and none of the most basic commands work anymore. Why can't the unix community agree on one single type of shell?? As... (1 Reply)
Discussion started by: PixelLover
1 Replies